[ovs-dev] raft: print local server ID when opening RAFT database

Dan Williams dcbw at redhat.com
Fri Jun 11 18:14:57 UTC 2021


On Wed, 2021-05-12 at 20:40 -0500, Dan Williams wrote:
> On Mon, 2021-04-05 at 10:34 -0500, Dan Williams wrote:
> > Signed-off-by: Dan Williams <dcbw at redhat.com>
> 
> Friendly ping for review on this one...

Yet another ping, thanks!

Dan

> 
> Thanks!
> Dan
> 
> > ---
> >  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;
> 




More information about the dev mailing list