From 353df78f83d3894223ed7fa9f537c1ba34071f6f Mon Sep 17 00:00:00 2001 From: jiangyan <18091841830@163.com> Date: Fri, 28 Jun 2024 14:21:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BB=BA=E5=8E=8B=E7=BC=A9?= =?UTF-8?q?=E8=A1=A8=E5=90=8E=EF=BC=8C=E5=81=9Acheckpoint=E5=87=BA?= =?UTF-8?q?=E7=8E=B0core=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/storage/smgr/md.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gausskernel/storage/smgr/md.cpp b/src/gausskernel/storage/smgr/md.cpp index 522715786..e2e64375c 100644 --- a/src/gausskernel/storage/smgr/md.cpp +++ b/src/gausskernel/storage/smgr/md.cpp @@ -2052,6 +2052,8 @@ int SyncMdFile(const FileTag *ftag, char *path) if (compressNode) { CopyCompressedPath(dst, path); openFilePath = dst; + errno_t rc = strcpy_s(path, MAXPGPATH, dst); + securec_check_c(rc, "\0", "\0"); } BlockNumber relSegSize = compressNode ? CFS_LOGIC_BLOCKS_PER_FILE : RELSEG_SIZE; /* Try to open the requested segment. */