fixbug: when file segno >= 1, pcaFilePath will be 16384.1_pca. when transfer 16384_pca, without set '\0', pcapath open will be like '16384_pcaca', which will cause file missing.

This commit is contained in:
wuyuechuan
2022-02-25 11:23:59 +08:00
parent ec66903e3f
commit 751684b561
3 changed files with 25 additions and 22 deletions

View File

@ -8147,7 +8147,7 @@ void SetupPageCompressForRelation(RelFileNode* node, PageCompressOpts* compress_
compress_options->compressChunkSize, BLCKSZ / 16, BLCKSZ / 8, BLCKSZ / 4, BLCKSZ / 2,
relationName)));
}
uint1 preallocChunks;
uint1 preallocChunks = 0;
if (compress_options->compressPreallocChunks >= BLCKSZ / compress_options->compressChunkSize) {
ereport(ERROR, (errmsg("invalid compress_prealloc_chunks %d , must be less than %d for %s",
compress_options->compressPreallocChunks,