Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)