Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: assert uniqueness in registerProposalLocked
We routinely overwrite entries in the `r.mu.proposals` map. That is "fine" (better if we didn't, but currently it is by design - it happens in refreshProposalsLocked and during tryReproposeWithNewLeaseIndex) but our overwrites should be no-ops, i.e. reference the exact same `*ProposalData`. This is now asserted. One way this would trip is a CmdID collision. Epic: none Release note: None
- Loading branch information