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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy