mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
node rejoin: rename variable for clarity
This commit is contained in:
@@ -2688,7 +2688,7 @@ do_node_rejoin(void)
|
||||
* sanity-check that it will actually be possible to stream from the new upstream
|
||||
*/
|
||||
{
|
||||
bool can_follow;
|
||||
bool can_rejoin;
|
||||
TimeLineID tli = get_min_recovery_end_timeline(config_file_options.data_directory);
|
||||
XLogRecPtr min_recovery_location = get_min_recovery_location(config_file_options.data_directory);
|
||||
|
||||
@@ -2702,13 +2702,13 @@ do_node_rejoin(void)
|
||||
if (tli == 0)
|
||||
tli = get_timeline(config_file_options.data_directory);
|
||||
|
||||
can_follow = check_node_can_attach(tli,
|
||||
can_rejoin = check_node_can_attach(tli,
|
||||
min_recovery_location,
|
||||
primary_conn,
|
||||
&primary_node_record,
|
||||
true);
|
||||
|
||||
if (can_follow == false)
|
||||
if (can_rejoin == false)
|
||||
{
|
||||
PQfinish(primary_conn);
|
||||
exit(ERR_REJOIN_FAIL);
|
||||
|
||||
Reference in New Issue
Block a user