pgpool2.git / summary / log / commit / refs
commit a3ec9f3ae39f006d78be6adffeeae0d5e90e47b9
Author: Tatsuo Ishii <ishii@sraoss.co.jp>
Date: Tue Oct 12 06:16:49 2021 +0000
Fix nasty bug with pgpool_recovery() in 4.3 or later.
Reported by Kawamoto and Peng Bo.
src/sql/pgpool-recovery/pgpool-recovery.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sql/pgpool-recovery/pgpool-recovery.c b/src/sql/pgpool-recovery/pgpool-recovery.c
index 515a2ee2b..77f92753e 100644
--- a/src/sql/pgpool-recovery/pgpool-recovery.c
+++ b/src/sql/pgpool-recovery/pgpool-recovery.c
@@ -96,7 +96,7 @@ pgpool_recovery(PG_FUNCTION_ARGS)
DataDir, script, DataDir, remote_host,
remote_data_directory, primary_port, remote_node, remote_port, primary_host);
}
- if (PG_NARGS() >= 6) /* Pgpool-II 4.1 or 4.2 */
+ else if (PG_NARGS() >= 6) /* Pgpool-II 4.1 or 4.2 */
{
char *primary_port = DatumGetCString(DirectFunctionCall1(textout,
PointerGetDatum(PG_GETARG_TEXT_P(3))));
[parent: 89738285251d]