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

Commitd8b094d

Browse files
committed
Print WAL position correctly in pg_rewind error message.
This has been wrong ever since pg_rewind was added. The if-branch justabove this, where we print the same error with an extra message suppliedby XLogReadRecord() got this right, but the variable name was wrong in theelse-branch. As a consequence, the error printed the WAL position as0/0 if there was an error reading a WAL file.Backpatch to 9.5, where pg_rewind was added.
1 parent14ef15a commitd8b094d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/bin/pg_rewind/parsexlog.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ extractPageMap(const char *datadir, XLogRecPtr startpoint, int tliIndex,
8989
errormsg);
9090
else
9191
pg_fatal("could not read WAL record at %X/%X",
92-
(uint32) (startpoint >>32),
93-
(uint32) (startpoint));
92+
(uint32) (errptr >>32), (uint32) (errptr));
9493
}
9594

9695
extractPageInfo(xlogreader);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp