Skip to content

Commit 2e2f525

Browse files
craig[bot]cthumuluru-crdb
andcommitted
Merge #157061
157061: kvserver: avoid starting async raft worker on error r=tbg a=cthumuluru-crdb Before this change, when GetHandle returns an error, we mark the task as done but continue to start raft worker asynchronously. Epic: None Fixes: None Release note: None Co-authored-by: Chandra Thumuluru <chandra.thumuluru@cockroachlabs.com>
2 parents df1585e + 70bc5eb commit 2e2f525

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/kv/kvserver/scheduler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ func (s *raftScheduler) Start(stopper *stop.Stopper) {
324324
})
325325
if err != nil {
326326
s.done.Done()
327+
continue
327328
}
328329
go f(ctx, hdl)
329330
}

0 commit comments

Comments
 (0)