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

Commit 90c65ee

Browse files
knizhnikkelvich
authored andcommitted
Fix problems with non-DTM mode
1 parent c506245 commit 90c65ee

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

multimaster.c

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

0 commit comments

Comments
 (0)