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

Commit705556a

Browse files
committed
Don't abort pg_basebackup when receiving empty WAL block
This is a similar fix asc6ec8799.2. This should never happen in 9.3 and newer since the special casecannot happen there, but this patch synchronizes up the code so thereis no confusion on why they're different. An empty block is as harmlessin 9.3 as it was in 9.2, and can safely be ignored.
1 parent001e114 commit705556a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/bin/pg_basebackup/receivelog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ HandleCopyStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline,
989989
hdr_len+=8;/* dataStart */
990990
hdr_len+=8;/* walEnd */
991991
hdr_len+=8;/* sendTime */
992-
if (r<hdr_len+1)
992+
if (r<hdr_len)
993993
{
994994
fprintf(stderr,_("%s: streaming header too small: %d\n"),
995995
progname,r);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp