Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[agroal#224] Prefill when doing a
switch-to
or primary change.
Whenever the primary host is changed, by means of an explicit `switch-to` command or by a primary failure, the connection flushing is activated. If possible, the prefill should be also restored on the new server. As suggested in <agroal#225 (comment)> it would be nice to check if the specified new server is the same as the old one (failure of the primary) or a different one (`switch-to`), and in the case they are different the prefill is forced.
- Loading branch information