修复建压缩表后,做checkpoint出现core问题

This commit is contained in:
jiangyan
2024-06-28 14:21:57 +08:00
parent ca44bc145f
commit 353df78f83

View File

@ -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. */