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

Commit7558cc9

Browse files
committed
Error out on send failure in walsender loop.
I changed the loop in 9.3 to use "goto send_failure" instead of "break" onerrors, but I missed this one case. It was a relatively harmless bug: ifthe flush fails once it will most likely fail again as soon as we try toflush the output again. But it's a bug nevertheless.Report and fix by Andres Freund.
1 parentb89e151 commit7558cc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/replication/walsender.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ WalSndLoop(void)
12911291
ping_sent= true;
12921292
/* Try to flush pending output to the client */
12931293
if (pq_flush_if_writable()!=0)
1294-
break;
1294+
gotosend_failure;
12951295
}
12961296
}
12971297

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp