Fixed the streaming replication check process not to retry if it cannot connect to...
authorBo Peng <pengbo@sraoss.co.jp>
Thu, 10 Feb 2022 02:02:38 +0000 (11:02 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Thu, 10 Feb 2022 02:28:07 +0000 (11:28 +0900)
commit2abf06efdde09a03ed4dd5a4b0b1905e5bc20301
tree3a746c8206e2e2563352b2f6e695cd7da7534747
parent7ec74730be862ee45561a782390b646545a781d3
Fixed the streaming replication check process not to retry if it cannot connect to the backend.

If the backend takes so long to respond, the connection times out,
then the streaming replication check process will continue to retry.
This retry causes a long time failover.
src/streaming_replication/pool_worker_child.c