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

Commit d80d862

Browse files
committed
Abort running transactions when switching to refereeGrant mode.
Two reasons: * Other nodes can abort their tx'es because of nConfigChanges changed. We can force them not to do that by not allowing that for nodes that not online, but that requires more accurate work * Also we use this function to cancel transactions after hard reboot. In that case we also better abort them, because client didn't saw their commit.
1 parent 3efbb56 commit d80d862

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
@@ -2030,7 +2030,7 @@ MtmPollStatusOfPreparedTransactions(bool majorMode)
20302030

20312031
if (majorMode)
20322032
{
2033-
MtmFinishPreparedTransaction(ts, ts->status != TRANSACTION_STATUS_IN_PROGRESS);
2033+
MtmFinishPreparedTransaction(ts, false);
20342034
}
20352035
else
20362036
{

0 commit comments

Comments
 (0)