Content-Length: 252738 | pFad | http://github.com/postgrespro/postgres_cluster/commit/9c3adf8cf2adb144f72648014037d323bdac6f8a

94 Do not call MtmCheckState() without lock · postgrespro/postgres_cluster@9c3adf8 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/9c3adf8cf2adb144f72648014037d323bdac6f8a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy