mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 21:13:33 +08:00
distributed allocation server - StateReport fix
This commit is contained in:
@@ -356,6 +356,18 @@ struct StateReport
|
|||||||
{
|
{
|
||||||
last_log_term = e->term;
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user