Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
57825: server: improve a logging message r=irfansharif a=irfansharif

Release note: None

Co-authored-by: irfan sharif <[email protected]>
  • Loading branch information
craig[bot] and irfansharif committed Dec 14, 2020
2 parents dffc015 + f57ef56 commit ac4d820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1071,12 +1071,12 @@ func (n *Node) ResetQuorum(
// Increment the generation so that the various caches will recognize this descriptor as newer.
desc.IncrementGeneration()

log.Infof(ctx, "starting recovery using desc %+v", desc)
log.Infof(ctx, "initiating recovery process using %s", desc)

// Update the meta2 entry. Note that we're intentionally
// eschewing updateRangeAddressing since the copy of the
// descriptor that resides on the range itself has lost quorum.
metaKey := keys.RangeMetaKey(desc.EndKey).AsRawKey()

if err := n.storeCfg.DB.CPut(ctx, metaKey, &desc, expValue.TagAndDataBytes()); err != nil {
return nil, err
}
Expand Down

0 comments on commit ac4d820

Please sign in to comment.