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

Commit 31d659a

Browse files
committed
Abort active transactions if not is not online any more
1 parent 191cedb commit 31d659a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/mmts/multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ MtmPostPrepareTransaction(MtmCurrentTrans* x)
840840

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

0 commit comments

Comments
 (0)