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

Commit 9c3adf8

Browse files
committed
Do not call MtmCheckState() without lock
1 parent 9a81a5b commit 9c3adf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

state.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,9 @@ MtmRefreshClusterStatus()
388388
* Periodical check that we are still in RECOVERED state.
389389
* See comment to MTM_RECOVERED -> MTM_ONLINE transition in MtmCheckState()
390390
*/
391+
MtmLock(LW_EXCLUSIVE);
391392
MtmCheckState();
393+
MtmUnlock();
392394

393395
/*
394396
* Check for referee decision when only half of nodes are visible.

0 commit comments

Comments
 (0)