mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
renamed config options to a much more descriptive name
This commit is contained in:
14
repmgrd.c
14
repmgrd.c
@@ -358,7 +358,7 @@ main(int argc, char **argv)
|
||||
/* Check that primary is still alive, and standbies are sending info */
|
||||
|
||||
/*
|
||||
* Every local_options.sleep_monitor seconds, do master checks
|
||||
* Every local_options.monitor_interval_secs seconds, do master checks
|
||||
* XXX
|
||||
* Check that standbies are sending info
|
||||
*/
|
||||
@@ -370,7 +370,7 @@ main(int argc, char **argv)
|
||||
CheckActiveStandbiesConnections();
|
||||
CheckInactiveStandbies();
|
||||
*/
|
||||
sleep(local_options.sleep_monitor);
|
||||
sleep(local_options.monitor_interval_secs);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -424,7 +424,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
/*
|
||||
* Every local_options.sleep_monitor seconds, do checks
|
||||
* Every local_options.monitor_interval_secs seconds, do checks
|
||||
*/
|
||||
if (myLocalMode == WITNESS_MODE)
|
||||
{
|
||||
@@ -441,7 +441,7 @@ main(int argc, char **argv)
|
||||
WitnessMonitor();
|
||||
else if (myLocalMode == STANDBY_MODE)
|
||||
StandbyMonitor();
|
||||
sleep(local_options.sleep_monitor);
|
||||
sleep(local_options.monitor_interval_secs);
|
||||
|
||||
if (got_SIGHUP)
|
||||
{
|
||||
@@ -600,10 +600,10 @@ StandbyMonitor(void)
|
||||
else
|
||||
{
|
||||
log_err(_("We haven't found a new master, waiting before retry...\n"));
|
||||
/* wait local_options.sleep_delay minutes before retries,
|
||||
* after 6 failures (6 * local_options.sleep_monitor
|
||||
/* wait local_options.retry_promote_interval_secs minutes before retries,
|
||||
* after 6 failures (6 * local_options.monitor_interval_secs
|
||||
* seconds) we stop trying */
|
||||
sleep(local_options.sleep_delay);
|
||||
sleep(local_options.retry_promote_interval_secs);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user