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

Commita6380f8

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 parent4dbf70b commita6380f8

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
@@ -90,8 +90,7 @@ extractPageMap(const char *datadir, XLogRecPtr startpoint, int tliIndex,
9090
errormsg);
9191
else
9292
pg_fatal("could not read WAL record at %X/%X\n",
93-
(uint32) (startpoint >>32),
94-
(uint32) (startpoint));
93+
(uint32) (errptr >>32), (uint32) (errptr));
9594
}
9695

9796
extractPageInfo(xlogreader);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp