mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Fix variable name spelling
This commit is contained in:
8
repmgr.c
8
repmgr.c
@@ -1536,8 +1536,9 @@ do_standby_promote(void)
|
|||||||
int i,
|
int i,
|
||||||
promote_check_timeout = 60,
|
promote_check_timeout = 60,
|
||||||
promote_check_interval = 2;
|
promote_check_interval = 2;
|
||||||
bool promote_sucess = false;
|
bool promote_success = false;
|
||||||
bool success;
|
bool success;
|
||||||
|
PQExpBufferData details;
|
||||||
|
|
||||||
/* We need to connect to check configuration */
|
/* We need to connect to check configuration */
|
||||||
log_info(_("connecting to standby database\n"));
|
log_info(_("connecting to standby database\n"));
|
||||||
@@ -1611,13 +1612,13 @@ do_standby_promote(void)
|
|||||||
retval = is_standby(conn);
|
retval = is_standby(conn);
|
||||||
if(!retval)
|
if(!retval)
|
||||||
{
|
{
|
||||||
promote_sucess = true;
|
promote_success = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
sleep(promote_check_interval);
|
sleep(promote_check_interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (promote_sucess == false)
|
if (promote_success == false)
|
||||||
{
|
{
|
||||||
log_err(_(retval == 1 ?
|
log_err(_(retval == 1 ?
|
||||||
"STANDBY PROMOTE failed, this is still a standby node.\n" :
|
"STANDBY PROMOTE failed, this is still a standby node.\n" :
|
||||||
@@ -1625,7 +1626,6 @@ do_standby_promote(void)
|
|||||||
exit(ERR_FAILOVER_FAIL);
|
exit(ERR_FAILOVER_FAIL);
|
||||||
}
|
}
|
||||||
|
|
||||||
PQExpBufferData details;
|
|
||||||
initPQExpBuffer(&details);
|
initPQExpBuffer(&details);
|
||||||
appendPQExpBuffer(&details,
|
appendPQExpBuffer(&details,
|
||||||
"Node %i was successfully promoted to master",
|
"Node %i was successfully promoted to master",
|
||||||
|
|||||||
Reference in New Issue
Block a user