Skip to content

Commit

Permalink
kvserver: rename maybeCampaignOnConfChange
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
tbg committed May 31, 2021
1 parent 1a7c8e7 commit b7acf2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kv/kvserver/replica_raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ func (r *Replica) handleRaftReadyRaftMuLocked(
//
// NB: this must be called after Advance() above since campaigning is
// a no-op in the presence of unapplied conf changes.
if maybeCampaignAfterConfChange(ctx, r.store.StoreID(), r.descRLocked(), raftGroup) {
if shouldCampaignAfterConfChange(ctx, r.store.StoreID(), r.descRLocked(), raftGroup) {
r.campaignLocked(ctx)
}
}
Expand Down Expand Up @@ -1919,7 +1919,7 @@ func ComputeRaftLogSize(
return ms.SysBytes + totalSideloaded, nil
}

func maybeCampaignAfterConfChange(
func shouldCampaignAfterConfChange(
ctx context.Context,
storeID roachpb.StoreID,
desc *roachpb.RangeDescriptor,
Expand Down

0 comments on commit b7acf2f

Please sign in to comment.