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

Commit27449cc

Browse files
author
Amit Kapila
committed
Fix the error message when failing to restore the snapshot.
The SnapBuildRestoreContents() used a const value in the error message toindicate the size in bytes it was expecting to read from the serializedsnapshot file. Fix it by reporting the size that was actually passed.Author: Hou ZhijieReviewed-by: Amit KapilaBackpatch-through: 16Discussion:http://postgr.es/m/OS0PR01MB5716D408364F7DF32221C08D941FA@OS0PR01MB5716.jpnprd01.prod.outlook.com
1 parent9efcf44 commit27449cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/replication/logical/snapbuild.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2039,7 +2039,7 @@ SnapBuildRestoreContents(int fd, char *dest, Size size, const char *path)
20392039
ereport(ERROR,
20402040
(errcode(ERRCODE_DATA_CORRUPTED),
20412041
errmsg("could not read file \"%s\": read %d of %zu",
2042-
path,readBytes,sizeof(SnapBuild))));
2042+
path,readBytes,size)));
20432043
}
20442044
}
20452045

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp