Skip to content

Commit d3df745

Browse files
committed
Fix problems with non-DTM mode
1 parent fb788a8 commit d3df745

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

contrib/mmts/multimaster.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -783,11 +783,8 @@ MtmPostPrepareTransaction(MtmCurrentTrans* x)
783783
tm->state = ts;
784784
ts->votingCompleted = true;
785785
if (Mtm->status != MTM_RECOVERY) {
786-
if (MtmUseDtm) {
787-
MtmSendNotificationMessage(ts, MSG_READY); /* send notification to coordinator */
788-
} else {
789-
ts->csn = MtmAssignCSN();
790-
MtmSendNotificationMessage(ts, MSG_PREPARED); /* send notification to coordinator */
786+
MtmSendNotificationMessage(ts, MSG_READY); /* send notification to coordinator */
787+
if (!MtmUseDtm) {
791788
ts->status = TRANSACTION_STATUS_UNKNOWN;
792789
}
793790
} else {

0 commit comments

Comments
 (0)