mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +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);
|
||||
|
||||
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
|
||||
* 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
|
||||
* We'll check to see whether the configuration files are in the data
|
||||
|
||||
Reference in New Issue
Block a user