-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sentinel: fix check for same reported vs spec sync standbys
When electing a new master we are swapping the new master uid with the old master uid in the syncstandbys slice. This could end with an unordered slice in the spec that will make the sentinel fail the check that the reported standbys are the same of the spec one blocking any future syncstandby update. Since the reported order is not a problem just check that the syncstandbys are the same regardless of their order. We'll keep the sorting to avoid unneeded updates to synchronous_standby_names by the keeper.
- Loading branch information
Showing
4 changed files
with
427 additions
and
14 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
Oops, something went wrong.