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

Commit 301e79a

Browse files
knizhnikkelvich
authored andcommitted
Check replication slot in prepare transaction
1 parent 62f7059 commit 301e79a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multimaster.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ MtmPostPrepareTransaction(MtmCurrentTrans* x)
896896
if (!found) {
897897
ts->isEnqueued = false;
898898
}
899-
if (Mtm->status != MTM_RECOVERY) {
899+
if (Mtm->status != MTM_RECOVERY || Mtm->recoverySlot != MtmReplicationNodeId) {
900900
MtmSendNotificationMessage(ts, MSG_READY); /* send notification to coordinator */
901901
if (!MtmUseDtm) {
902902
ts->status = TRANSACTION_STATUS_UNKNOWN;

0 commit comments

Comments
 (0)