We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4645c6e commit d2c54cdCopy full SHA for d2c54cd
pkg/kv/kvserver/replica.go
@@ -1859,6 +1859,9 @@ func (r *Replica) raftStatusRLocked() *raft.Status {
1859
// raftSparseStatusRLocked returns a sparse Raft status without Config and
1860
// Progress.Inflights which are expensive to copy, or nil if the Raft group has
1861
// not been initialized yet. Progress is only populated on the leader.
1862
+//
1863
+// TODO(wenyihu6): odd that this is returning a pointer while holding only an
1864
+// RLock.
1865
func (r *Replica) raftSparseStatusRLocked() *raft.SparseStatus {
1866
rg := r.mu.internalRaftGroup
1867
if rg == nil {
0 commit comments