Skip to content

Commit

Permalink
kvserver: fix bug in baseQueue.AddAsync
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
aayushshah15 committed Apr 28, 2022
1 parent 0782bef commit bbbfb1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kv/kvserver/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ func (bq *baseQueue) MaybeAddAsync(
// for other operations to finish instead of turning into a noop (because
// unlikely MaybeAdd, Add is not subject to being called opportunistically).
func (bq *baseQueue) AddAsync(ctx context.Context, repl replicaInQueue, prio float64) {
bq.Async(ctx, "Add", false /* wait */, func(ctx context.Context, h queueHelper) {
bq.Async(ctx, "Add", true /* wait */, func(ctx context.Context, h queueHelper) {
h.Add(ctx, repl, prio)
})
}
Expand Down

0 comments on commit bbbfb1a

Please sign in to comment.