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

Commit cbe3845

Browse files
knizhnikkelvich
authored andcommitted
Abort active transactions if not is not online any more
1 parent 63d4492 commit cbe3845

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
@@ -839,7 +839,7 @@ MtmPostPrepareTransaction(MtmCurrentTrans* x)
839839

840840
timestamp_t start = MtmGetSystemTime();
841841
/* wait votes from all nodes */
842-
while (!ts->votingCompleted && ts->status != TRANSACTION_STATUS_ABORTED && start + transTimeout >= MtmGetSystemTime())
842+
while (!ts->votingCompleted && Mtm->status == MTM_ONLINE && ts->status != TRANSACTION_STATUS_ABORTED && start + transTimeout >= MtmGetSystemTime())
843843
{
844844
MtmUnlock();
845845
result = WaitLatch(&MyProc->procLatch, WL_LATCH_SET|WL_TIMEOUT, MtmHeartbeatRecvTimeout);

0 commit comments

Comments
 (0)