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

Commit cb3e70b

Browse files
committed
mtm_broadcast_table: broadcast to all enabled nodes, instead of taking bitmask as a parameter
1 parent e40b363 commit cb3e70b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/mmts/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

contrib/mmts/multimaster.c

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

0 commit comments

Comments
 (0)