mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Move cluster size check to an earlier point
Seems to make more sense that way.
This commit is contained in:
12
repmgr.c
12
repmgr.c
@@ -930,6 +930,12 @@ do_standby_clone(void)
|
|||||||
|
|
||||||
check_upstream_config(primary_conn, server_version_num, true);
|
check_upstream_config(primary_conn, server_version_num, true);
|
||||||
|
|
||||||
|
if(get_cluster_size(primary_conn, cluster_size) == false)
|
||||||
|
exit(ERR_DB_QUERY);
|
||||||
|
|
||||||
|
log_info(_("Successfully connected to upstream node. Current installation size is %s\n"),
|
||||||
|
cluster_size);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check that tablespaces named in any `tablespace_mapping` configuration
|
* Check that tablespaces named in any `tablespace_mapping` configuration
|
||||||
* file parameters exist.
|
* file parameters exist.
|
||||||
@@ -978,12 +984,6 @@ do_standby_clone(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(get_cluster_size(primary_conn, cluster_size) == false)
|
|
||||||
exit(ERR_DB_QUERY);
|
|
||||||
|
|
||||||
log_info(_("Successfully connected to upstream node. Current installation size is %s\n"),
|
|
||||||
cluster_size);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Obtain data directory and configuration file locations
|
* Obtain data directory and configuration file locations
|
||||||
* We'll check to see whether the configuration files are in the data
|
* We'll check to see whether the configuration files are in the data
|
||||||
|
|||||||
Reference in New Issue
Block a user