-
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.
mon: paxos: introduce new reset_pending_committing_finishers for safety
There are asserts about the state of the system and pending_finishers which can be triggered by running arbitrary commands through again. They are correct when not restarting, but when we do restart we need to take care to preserve the same invariants as appropriate. Use this function to be careful about the order of committing_finishers v pending_finishers and to make sure they're both empty before any Contexts actually get called. We also reorder a call to finish_contexts on the waiting_for_writeable list for similar reasons. Fixes: http://tracker.ceph.com/issues/39484 Signed-off-by: Greg Farnum <[email protected]>
- Loading branch information
1 parent
8cd1128
commit b17caec
Showing
2 changed files
with
17 additions
and
6 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
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