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

Commitf2d84a4

Browse files
committed
Adjust error message for partial writes in WAL segments
93473c6 has removed openLogOff, changing on the way the error messagewhich is used to report partial writes to WAL segments. Thenewly-introduced error message used the offset up to which the write hashappened, keeping always the same total length to write. This changesthe error message so as the number of bytes left to write are reported.Reported-by: Michael PaquierAuthor: Robert HaasDiscussion:https://postgr.es/m/20190306235251.GA17293@paquier.xyz
1 parentfc84c05 commitf2d84a4

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2504,7 +2504,7 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible)
25042504
errmsg("could not write to log file %s "
25052505
"at offset %u, length %zu: %m",
25062506
XLogFileNameP(ThisTimeLineID,openLogSegNo),
2507-
startoffset,nbytes)));
2507+
startoffset,nleft)));
25082508
}
25092509
nleft-=written;
25102510
from+=written;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp