Move cluster size check to an earlier point

Seems to make more sense that way.
This commit is contained in:
Ian Barwick
2015-02-25 14:28:42 +09:00
parent 32611f5f04
commit e3ecd3cdc5

View File

@@ -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