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

Commitfbcdff3

Browse files
committed
Thinko in previous commit: ensure that MAX_SEND_SIZE is always greater
than XLOG_BLCKSZ, by defining it as 16 * XLOG_BLCKSZ rather than directlyas 128k bytes.
1 parentea55160 commitfbcdff3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/replication/walsender.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
*
3232
* IDENTIFICATION
33-
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.21 2010/05/26 22:21:33 heikki Exp $
33+
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.22 2010/05/26 22:34:49 heikki Exp $
3434
*
3535
*-------------------------------------------------------------------------
3636
*/
@@ -109,10 +109,10 @@ static void CheckClosedConnection(void);
109109
* We don't have a good idea of what a good value would be; there's some
110110
* overhead per message in both walsender and walreceiver, but on the other
111111
* hand sending large batches makes walsender less responsive to signals
112-
* because signals are checked only between messages. 128kBseems like
113-
* a reasonable guess for now.
112+
* because signals are checked only between messages. 128kB(with
113+
*default 8k blocks) seems likea reasonable guess for now.
114114
*/
115-
#defineMAX_SEND_SIZE (128 *1024)
115+
#defineMAX_SEND_SIZE (XLOG_BLCKSZ *16)
116116

117117
/* Main entry point for walsender process */
118118
int

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp