forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: hoist early return out of tryReproposeWithNewLeaseIndex
This exposes the madness of this control flow for what it is. There is no behavior change here. We were previously unconditionally overriding `pErr`, potentially with a `nil`, which seems sketchy but we get away with it and now we document this explicitly. Epic: none Release note: None
- Loading branch information
Showing
1 changed file
with
39 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters