Content-Length: 265977 | pFad | http://github.com/postgrespro/postgres_cluster/commit/2853e6a1850e80b455ba19955a2f1974e1baacf0

F5 disable disconnected nodes as clique detector will not necessarly do … · postgrespro/postgres_cluster@2853e6a · GitHub
Skip to content

Commit 2853e6a

Browse files
committed
disable disconnected nodes as clique detector will not necessarly do that
1 parent d933855 commit 2853e6a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

state.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,15 @@ void MtmOnNodeDisconnect(int nodeId)
289289

290290
MTM_LOG1("[STATE] Node %i: disconnected", nodeId);
291291

292+
/*
293+
* We should disable it, as clique detector will not necessarily
294+
* do that. For example it will anyway find clique with one node.
295+
*/
296+
MtmDisableNode(nodeId);
297+
292298
MtmLock(LW_EXCLUSIVE);
293299
BIT_SET(SELF_CONNECTIVITY_MASK, nodeId-1);
294300
BIT_SET(Mtm->reconnectMask, nodeId-1);
295-
// MtmDisableNode(nodeId);
296301
MtmCheckState();
297302
MtmUnlock();
298303

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/2853e6a1850e80b455ba19955a2f1974e1baacf0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy