Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bdf2f9d

Browse files
committed
unfortunately GUC_UNIT_KB isn't 1024, but just a constant
1 parent 8c0c0c1 commit bdf2f9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2880,7 +2880,7 @@ _PG_init(void)
28802880
&MtmTransSpillThreshold,
28812881
100 * 1024, /* 100Mb */
28822882
0,
2883-
MaxAllocSize/GUC_UNIT_KB,
2883+
MaxAllocSize/1024,
28842884
PGC_SIGHUP,
28852885
GUC_UNIT_KB,
28862886
NULL,

pglogical_receiver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ pglogical_receiver_main(Datum main_arg)
536536
int msg_len = rc - hdr_len;
537537
stmt = copybuf + hdr_len;
538538
MTM_LOG3("Receive message %c from node %d", stmt[0], nodeId);
539-
if (buf.used + msg_len + 1 >= MtmTransSpillThreshold*GUC_UNIT_KB) {
539+
if (buf.used + msg_len + 1 >= MtmTransSpillThreshold*1024L) {
540540
if (spill_file < 0) {
541541
int file_id;
542542
spill_file = MtmCreateSpillFile(nodeId, &file_id);

0 commit comments

Comments
 (0)