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

Commit 4a96cd3

Browse files
knizhnikkelvich
authored andcommitted
Move watchdog check under lock
1 parent 9b1ae2b commit 4a96cd3

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
@@ -800,8 +800,8 @@ MtmPostPrepareTransaction(MtmCurrentTrans* x)
800800
int nConfigChanges = Mtm->nConfigChanges;
801801
/* wait votes from all nodes */
802802
while (!ts->votingCompleted) {
803-
MtmUnlock();
804803
MtmWatchdog();
804+
MtmUnlock();
805805
result = WaitLatch(&MyProc->procLatch, WL_LATCH_SET|WL_TIMEOUT, timeout);
806806
if (result & WL_LATCH_SET) {
807807
ResetLatch(&MyProc->procLatch);

0 commit comments

Comments
 (0)