Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/kv/kvserver/replicate_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package kvserver
import (
"context"
"fmt"
"math"
"time"

"github.com/cockroachdb/cockroach/pkg/gossip"
Expand Down Expand Up @@ -109,7 +110,7 @@ var ReplicateQueueMaxSize = settings.RegisterIntSetting(
"maximum number of replicas that can be queued for replicate queue processing; "+
"when this limit is exceeded, lower priority (not guaranteed to be the lowest) "+
"replicas are dropped from the queue",
defaultQueueMaxSize,
math.MaxInt64,
settings.WithValidateInt(func(v int64) error {
if v < defaultQueueMaxSize {
return errors.Errorf("cannot be set to a value lower than %d: %d", defaultQueueMaxSize, v)
Expand Down