Files
patroni/tests
Alexander KukushkinandGitHub a8b90f0cd6 Make sure Cluster.sync is never empty (#2614)
It was possible to have it empty if the all cluster keys are missing in DCS. In this case the `Cluster` object was manually created with all values set to `None` or `[]` (including sync).
It already resulted in #2217, which is in fact wasn't a correct fix.

In order to solve it and reduce code duplication we introduce `Cluster.empty()` and `SyncState.empty()` methods, which will create corresponding empty objects and start using `Cluster.empty()` from all places where the empty `Cluster` object was manually created.
2023-03-22 16:41:41 +01:00
..
2023-03-13 17:00:04 +01:00
2023-01-24 16:14:58 +01:00
2023-01-24 16:14:58 +01:00
2023-03-13 17:00:04 +01:00
2023-01-24 16:14:58 +01:00