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

Commit020258a

Browse files
committed
Fix error message for CFS
1 parenteb2ea8d commit020258a

File tree

1 file changed

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

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,8 +1749,12 @@ FileRead(File file, char *buffer, int amount)
17491749
{
17501750
if (errno!=EINTR)
17511751
{
1752-
elog(LOG,"Failed to read block %u position %u size %u from compressed file %s: %m",
1753-
(uint32)(VfdCache[file].seekPos /BLCKSZ), (uint32)seekPos,size,VfdCache[file].fileName);
1752+
if (returnCode==0)
1753+
elog(LOG,"Block %u position %u size %u is beyond end of compressed file %s",
1754+
(uint32)(VfdCache[file].seekPos /BLCKSZ), (uint32)seekPos,size,VfdCache[file].fileName);
1755+
else
1756+
elog(LOG,"Failed to read block %u position %u size %u from compressed file %s: %m",
1757+
(uint32)(VfdCache[file].seekPos /BLCKSZ), (uint32)seekPos,size,VfdCache[file].fileName);
17541758
cfs_unlock_file(map);
17551759
returnreturnCode;
17561760
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp