pgpool2.git / summary / log / commit / refs
commit 2abf06efdde09a03ed4dd5a4b0b1905e5bc20301
Author: Bo Peng <pengbo@sraoss.co.jp>
Date: Thu Feb 10 02:02:38 2022 +0000
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/streaming_replication/pool_worker_child.c b/src/streaming_replication/pool_worker_child.c
index 59c0b58cb..9306a6315 100644
--- a/src/streaming_replication/pool_worker_child.c
+++ b/src/streaming_replication/pool_worker_child.c
@@ -284,7 +284,7 @@ establish_persistent_connection(void)
bkinfo->backend_port,
pool_config->sr_check_database,
pool_config->sr_check_user,
- password ? password : "", true);
+ password ? password : "", false);
}
}
[parent: 7ec74730be86]