We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0965e2d commit 4489153Copy full SHA for 4489153
src/backend/storage/file/cfs.c
@@ -908,7 +908,7 @@ static bool cfs_gc_file(char* map_path, bool noerror)
908
{
909
inode_t inode = newMap->inodes[i];
910
int size = CFS_INODE_SIZE(inode);
911
- if (size != 0)
+ if (size != 0 && size < BLCKSZ)
912
913
char block[BLCKSZ];
914
char decomressedBlock[BLCKSZ];
@@ -926,7 +926,7 @@ static bool cfs_gc_file(char* map_path, bool noerror)
926
pg_atomic_fetch_sub_u32(&map->lock, CFS_GC_LOCK); /* release lock */
927
/* TODO Is it worth to PANIC or ERROR will be enough? */
928
elog(PANIC, "Verification failed for block %d of relation %s: error code %d",
929
- i, file_path, (int)res);
+ i, file_bck_path, (int)res);
930
}
931
932
0 commit comments