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

Commitcf74b6e

Browse files
committed
Fix some BufFileRead() error reporting
Remove "%m" from error messages where errno would be bogus. Add shortread byte counts where appropriate.This is equivalent to what was done in7897e3b, but some code was apparentlydeveloped concurrently to that and not updated accordingly.Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/f3501945-c591-8cc3-5ef0-b72a2e0eaa9c@enterprisedb.com
1 parent787db4b commitcf74b6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/replication/backup_manifest.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,8 @@ SendBackupManifest(backup_manifest_info *manifest)
358358
if (rc!=bytes_to_read)
359359
ereport(ERROR,
360360
(errcode_for_file_access(),
361-
errmsg("could not read from temporary file: %m")));
361+
errmsg("could not read from temporary file: read only %zu of %zu bytes",
362+
rc,bytes_to_read)));
362363
pq_putmessage('d',manifestbuf,bytes_to_read);
363364
manifest_bytes_done+=bytes_to_read;
364365
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp