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

Commit 2b26117

Browse files
committed
fix units of MtmTransSpillThreshold
1 parent e9ffde3 commit 2b26117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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*MB) {
539+
if (buf.used + msg_len + 1 >= MtmTransSpillThreshold*GUC_UNIT_KB) {
540540
if (spill_file < 0) {
541541
int file_id;
542542
spill_file = MtmCreateSpillFile(nodeId, &file_id);

0 commit comments

Comments
 (0)