@@ -402,10 +402,7 @@ prepare_initCoordinatorSlave(char *nodeName)
402402 "# Added to initialize the slave, %s\n"
403403 "hot_standby = on\n"
404404 "port = %s\n"
405- "wal_level = minimal\n"
406- "archive_mode = off\n"
407405 "archive_command = ''\n"
408- "max_wal_senders = 0\n"
409406 "# End of Addition\n" ,
410407 timeStampString (timestamp , MAXTOKEN ), aval (VAR_coordPorts )[idx ]);
411408 fclose (f );
@@ -1252,10 +1249,12 @@ add_coordinatorSlave(char *name, char *host, char *dir, char *archDir)
12521249 "# Added to initialize the slave, %s\n"
12531250 "hot_standby = on\n"
12541251 "port = %d\n"
1255- "wal_level = minimal \n" /* WAL level --- minimal. No cascade slave so far. */
1256- "archive_mode = off \n" /* No archive mode */
1252+ "wal_level = hot_standby \n" /* WAL level --- to be ready to failover */
1253+ "archive_mode = on \n" /* To be ready to be a master */
12571254 "archive_command = ''\n" /* No archive mode */
1258- "max_wal_senders = 0\n" /* Minimum WAL senders */
1255+ "max_wal_senders = 5\n" /* To be ready to be a master: Tentatively 5. */
1256+ /* Next major version will allow common */
1257+ /* max_wal_senders to be taken here. */
12591258 "# End of Addition\n" ,
12601259 timeStampString (date , MAXTOKEN ), atoi (aval (VAR_coordPorts )[idx ]));
12611260 fclose (f );
@@ -1469,11 +1468,8 @@ remove_coordinatorSlave(char *name, int clean_opt)
14691468 fprintf (f ,
14701469 "#=======================================\n"
14711470 "# Updated to remove the slave %s\n"
1472- "archive_mode = off\n"
14731471 "synchronous_standby_names = ''\n"
14741472 "archive_command = ''\n"
1475- "max_wal_senders = 0\n"
1476- "wal_level = minimal\n"
14771473 "# End of the update\n" ,
14781474 timeStampString (date , MAXTOKEN ));
14791475 fclose (f );
0 commit comments