[ovs-dev] raft: print local server ID when opening RAFT database
Dan Williams
dcbw at redhat.com
Mon Apr 5 15:34:19 UTC 2021
Signed-off-by: Dan Williams <dcbw at redhat.com>
---
ovsdb/raft.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ovsdb/raft.c b/ovsdb/raft.c
index d2ff643b27379..7f3ee733dbcc0 100644
--- a/ovsdb/raft.c
+++ b/ovsdb/raft.c
@@ -1026,6 +1026,8 @@ raft_open(struct ovsdb_log *log, struct raft **raftp)
raft_reset_ping_timer(raft);
raft_reset_election_timer(raft);
+ VLOG_INFO("local server ID is "SID_FMT, SID_ARGS(&raft->sid));
+
*raftp = raft;
hmap_insert(&all_rafts, &raft->hmap_node, hash_string(raft->name, 0));
return NULL;
--
2.30.2
More information about the dev
mailing list