mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
distributed allocation server - StateReport fix
This commit is contained in:
parent
aaa3c225c4
commit
0348b22b1e
@ -356,6 +356,18 @@ struct StateReport
|
||||
{
|
||||
last_log_term = e->term;
|
||||
}
|
||||
|
||||
for (uint8_t i = 0; i < (cluster_size - 1U); i++)
|
||||
{
|
||||
const ClusterManager& mgr = s.getRaftCore().getClusterManager();
|
||||
const NodeID node_id = mgr.getRemoteServerNodeIDAtIndex(i);
|
||||
if (node_id.isUnicast())
|
||||
{
|
||||
followers[i].node_id = node_id;
|
||||
followers[i].next_index = mgr.getServerNextIndex(node_id);
|
||||
followers[i].match_index = mgr.getServerMatchIndex(node_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user