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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy