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)
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