We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b6516a + 9224e06 commit 2a29d3bCopy full SHA for 2a29d3b
storage/ndb/src/mgmsrv/MgmtSrvr.cpp
@@ -1481,24 +1481,17 @@ MgmtSrvr::guess_master_node(SignalSender& ss)
1481
return guess;
1482
1483
/**
1484
- * Check connected nodes based on dynamicId
+ * Check any connected node
1485
*/
1486
node_id = 0;
1487
while(getNextNodeId(&node_id, NDB_MGM_NODE_TYPE_NDB))
1488
{
1489
trp_node node = ss.getNodeInfo(node_id);
1490
- if(node.m_state.dynamicId < min)
+ if (node.is_connected())
1491
1492
- if(node.is_connected())
1493
- {
1494
- min = node.m_state.dynamicId;
1495
- guess = node_id;
1496
- }
+ return node_id;
1497
}
1498
1499
- //found
1500
- if(min < UINT32_MAX)
1501
- return guess;
1502
1503
return 0; // give up
1504
0 commit comments