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

Commit 9a706c9

Browse files
committed
Check replication slot in prepare transaction
1 parent a029e19 commit 9a706c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/mmts/multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ MtmPostPrepareTransaction(MtmCurrentTrans* x)
897897
if (!found) {
898898
ts->isEnqueued = false;
899899
}
900-
if (Mtm->status != MTM_RECOVERY) {
900+
if (Mtm->status != MTM_RECOVERY || Mtm->recoverySlot != MtmReplicationNodeId) {
901901
MtmSendNotificationMessage(ts, MSG_READY); /* send notification to coordinator */
902902
if (!MtmUseDtm) {
903903
ts->status = TRANSACTION_STATUS_UNKNOWN;

0 commit comments

Comments
 (0)