Skip to content

Commit

Permalink
kv: ignore internalRaftGroup in Replica.Metric
Browse files Browse the repository at this point in the history
A replica cannot unquiesce if its internalRaftGroup is nil, so this
condition was redundant but confusing.
  • Loading branch information
nvanbenschoten committed Jan 10, 2022
1 parent ba6f354 commit 000d36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kv/kvserver/replica_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (r *Replica) Metrics(
r.mu.RLock()
raftStatus := r.raftStatusRLocked()
leaseStatus := r.leaseStatusAtRLocked(ctx, now)
quiescent := r.mu.quiescent || r.mu.internalRaftGroup == nil
quiescent := r.mu.quiescent
desc := r.mu.state.Desc
conf := r.mu.conf
raftLogSize := r.mu.raftLogSize
Expand Down

0 comments on commit 000d36c

Please sign in to comment.