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

Commit 43612f1

Browse files
committed
mtm_broadcast_table: broadcast to all enabled nodes, instead of taking bitmask as a parameter
1 parent 36d1556 commit 43612f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

multimaster--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ CREATE FUNCTION mtm.make_table_local(relation regclass) RETURNS void
8484
AS 'MODULE_PATHNAME','mtm_make_table_local'
8585
LANGUAGE C;
8686

87-
CREATE FUNCTION mtm.broadcast_table(srcTable regclass, dstNodesMask bigint) RETURNS void
87+
CREATE FUNCTION mtm.broadcast_table(srcTable regclass) RETURNS void
8888
AS 'MODULE_PATHNAME','mtm_broadcast_table'
8989
LANGUAGE C;
9090

multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4459,7 +4459,7 @@ Datum mtm_broadcast_table(PG_FUNCTION_ARGS)
44594459
{
44604460
MtmCopyRequest copy;
44614461
copy.sourceTable = PG_GETARG_OID(0);
4462-
copy.targetNodes = PG_GETARG_INT64(1);
4462+
copy.targetNodes = ~Mtm->disabledNodeMask;
44634463
LogLogicalMessage("B", (char*)&copy, sizeof(copy), true);
44644464
MtmTx.containsDML = true;
44654465
PG_RETURN_VOID();

0 commit comments

Comments
 (0)