mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-26 15:40:21 +00:00
Previously, pg_rewind was called only if a crashed master tried to rejoin the cluster. It didn't cover the important case of a master shut down cleanly, but with a combination of a smart shutdown and subsequently a fast shutdown. Since out pg_rewind code does not depend on the "uncleanness" of the master's shutdown, we can call it unconditionally in all cases where the former master tries to rejoin as a replica. This resolves #167.