File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -2080,6 +2080,7 @@ static void MtmInitialize()
2080
2080
Mtm -> nodes [i ].originId = InvalidRepOriginId ;
2081
2081
Mtm -> nodes [i ].timeline = 0 ;
2082
2082
}
2083
+ Mtm -> nodes [MtmNodeId - 1 ].originId = DoNotReplicateId ;
2083
2084
PGSemaphoreCreate (& Mtm -> sendSemaphore );
2084
2085
PGSemaphoreReset (& Mtm -> sendSemaphore );
2085
2086
SpinLockInit (& Mtm -> spinlock );
@@ -2806,10 +2807,12 @@ void MtmFinishPreparedTransaction(MtmTransState* ts, bool commit)
2806
2807
Assert (!IsTransactionState ());
2807
2808
MtmResetTransaction ();
2808
2809
StartTransactionCommand ();
2810
+ #if 0
2809
2811
if (Mtm -> nodes [MtmNodeId - 1 ].originId == InvalidRepOriginId ) {
2810
2812
/* This dummy origin is used for local commits/aborts which should not be replicated */
2811
2813
Mtm -> nodes [MtmNodeId - 1 ].originId = replorigin_create (psprintf (MULTIMASTER_SLOT_PATTERN , MtmNodeId ));
2812
2814
}
2815
+ #endif
2813
2816
MtmBeginSession (MtmNodeId );
2814
2817
MtmSetCurrentTransactionCSN (ts -> csn );
2815
2818
MtmSetCurrentTransactionGID (ts -> gid );
You can’t perform that action at this time.
0 commit comments