2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

raft: print local server ID when opening RAFT database

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Dan Williams
2021-04-05 10:34:19 -05:00
committed by Ben Pfaff
parent c5a58ec155
commit 50b419d0a4

View File

@@ -1065,6 +1065,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;