Fix watchdog_setup to not fail when -n is not specified.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 5 May 2021 00:26:58 +0000 (09:26 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 5 May 2021 00:26:58 +0000 (09:26 +0900)
watchdog_setup failed if -n (number of PostgreSQL clusters) is not
specified. Now if -n is not specified, assume "-n = 2", which is same
as in pgpool_setup.

src/test/watchdog_setup.in

index 992c0fc7f77ef96ccb6891e7e535acf2a0a723e5..3c697da1118e0029060a21a87d018427bb6d8bac 100644 (file)
@@ -31,13 +31,15 @@ W_NUM_PGPOOL=${W_NUM_PGPOOL:-"3"}
 # Starting port number.
 W_BASE_PORT=${W_BASE_PORT:-"50000"}
 
+# Number of default PostgreSQL clusters
+NUMCLUSTERS=2
+
 # PostgreSQL startig port number.
 export PGBASEPORT=`expr $W_BASE_PORT + 1000`
 
 # number of ports used in a single pgpool-II installation.
 # (port, pcp_port, wd_port, wd_heartbeat_port)
 num_ports_per_node=4
-
 #-------------------------------------------
 # End of configuration section
 #-------------------------------------------