Skip to content

Commit

Permalink
kvserver: [dnm] hack rac2 enabled
Browse files Browse the repository at this point in the history
DNM, hack in changes required to enable rac2 for testing in prior
commits.

Part of: #130187
Release note: None
  • Loading branch information
kvoli committed Sep 18, 2024
1 parent 0faea5a commit 359f19e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/kv/kvserver/replica.go
Original file line number Diff line number Diff line change
Expand Up @@ -2530,8 +2530,10 @@ func (r *Replica) GetMutexForTesting() *ReplicaMutex {
func racV2EnabledWhenLeaderLevel(
ctx context.Context, st *cluster.Settings,
) replica_rac2.EnabledWhenLeaderLevel {
// TODO(sumeer): implement fully, once all the dependencies are implemented.
return replica_rac2.NotEnabledWhenLeader
// TODO(kvoli,sumeerbhola): Should this be a cluster setting, or are we
// ratcheting it up via cluster version? Either way, we need a cluster
// setting somewhere.
return replica_rac2.EnabledWhenLeaderV2Encoding
}

// maybeEnqueueProblemRange will enqueue the replica for processing into the
Expand Down

0 comments on commit 359f19e

Please sign in to comment.