Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4489153

Browse files
committed
Fix bug in cfs_verify_file
1 parent0965e2d commit4489153

File tree

1 file changed

+2
-2
lines changed
  • src/backend/storage/file

1 file changed

+2
-2
lines changed

‎src/backend/storage/file/cfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ static bool cfs_gc_file(char* map_path, bool noerror)
908908
{
909909
inode_tinode=newMap->inodes[i];
910910
intsize=CFS_INODE_SIZE(inode);
911-
if (size!=0)
911+
if (size!=0&&size<BLCKSZ)
912912
{
913913
charblock[BLCKSZ];
914914
chardecomressedBlock[BLCKSZ];
@@ -926,7 +926,7 @@ static bool cfs_gc_file(char* map_path, bool noerror)
926926
pg_atomic_fetch_sub_u32(&map->lock,CFS_GC_LOCK);/* release lock */
927927
/* TODO Is it worth to PANIC or ERROR will be enough? */
928928
elog(PANIC,"Verification failed for block %d of relation %s: error code %d",
929-
i,file_path, (int)res);
929+
i,file_bck_path, (int)res);
930930
}
931931
}
932932
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp