mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 03:43:34 +08:00
Raft tracepoint at election completion
This commit is contained in:
@@ -165,6 +165,7 @@ class RaftCore : private TimerBase
|
||||
|
||||
if (num_votes_received_in_this_campaign_ > 0)
|
||||
{
|
||||
trace(TraceRaftElectionComplete, num_votes_received_in_this_campaign_);
|
||||
const bool won = num_votes_received_in_this_campaign_ >= cluster_.getQuorumSize();
|
||||
|
||||
UAVCAN_TRACE("dynamic_node_id_server::distributed::RaftCore", "Election complete, won: %d", int(won));
|
||||
|
||||
Reference in New Issue
Block a user