From 2952608ffaca86c41b8052f16282ba7b1f005a12 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sun, 24 May 2015 18:20:57 +0300 Subject: [PATCH] RaftCore: new event code --- .../protocol/dynamic_node_id_server/distributed/raft_core.hpp | 1 + .../include/uavcan/protocol/dynamic_node_id_server/event.hpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/distributed/raft_core.hpp b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/distributed/raft_core.hpp index a7abd0bcc4..97a92f70aa 100644 --- a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/distributed/raft_core.hpp +++ b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/distributed/raft_core.hpp @@ -612,6 +612,7 @@ private: else { cluster_.decrementServerNextIndex(result.getCallID().server_node_id); + trace(TraceRaftAppendEntriesRespUnsucfl, result.getCallID().server_node_id.get()); } } diff --git a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/event.hpp b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/event.hpp index a6b452aaa0..1a75ef7657 100644 --- a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/event.hpp +++ b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/event.hpp @@ -52,7 +52,7 @@ enum UAVCAN_EXPORT TraceCode // 25 TraceRaftAppendEntriesCallFailure, // error code (may be negated) TraceRaftElectionComplete, // number of votes collected - Trace1, + TraceRaftAppendEntriesRespUnsucfl, // node ID of the client Trace2, Trace3, // 30 @@ -127,7 +127,7 @@ public: "RaftNewEntryCommitted", "RaftAppendEntriesCallFailure", "RaftElectionComplete", - "", + "RaftAppendEntriesRespUnsucfl", "", "", "AllocationFollowupResponse",