Skip to content

Commit

Permalink
kvserver, kvclient: allow Rangefeeds to run over non-voting replicas
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
aayushshah15 committed Jan 28, 2021
1 parent c6f6723 commit 64ba572
Show file tree
Hide file tree
Showing 2 changed files with 215 additions and 208 deletions.
3 changes: 1 addition & 2 deletions pkg/kv/kvclient/kvcoord/dist_sender_rangefeed.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ func (ds *DistSender) singleRangeFeed(
if ds.rpcContext != nil {
latencyFn = ds.rpcContext.RemoteClocks.Latency
}
// TODO(aayush): We should enable creating RangeFeeds on non-voting replicas.
replicas, err := NewReplicaSlice(ctx, ds.nodeDescs, desc, nil, OnlyPotentialLeaseholders)
replicas, err := NewReplicaSlice(ctx, ds.nodeDescs, desc, nil, AllExtantReplicas)
if err != nil {
return args.Timestamp, err
}
Expand Down
Loading

0 comments on commit 64ba572

Please sign in to comment.