Call check_93_config() directly from check_upstream_config()

This commit is contained in:
Ian Barwick
2019-10-16 16:57:53 +09:00
parent de67fa2441
commit f45b9d7024

View File

@@ -5091,10 +5091,7 @@ check_source_server()
}
}
/* disable configuration file options incompatible with 9.3 */
if (source_server_version_num < 90400)
check_93_config();
/* Check the source node is configured sufficiently to be able to clone from */
check_upstream_config(source_conn, source_server_version_num, &upstream_node_record, true);
}
@@ -5201,8 +5198,6 @@ check_source_server_via_barman()
* Perform sanity check on upstream server configuration before starting cloning
* process
*
* For PostreSQL 9.3, ensure check_93_config() is called before calling this.
*
* TODO:
* - check user is qualified to perform base backup
*/
@@ -5220,6 +5215,10 @@ check_upstream_config(PGconn *conn, int server_version_num, t_node_info *upstrea
standy_clone_mode mode;
bool pg_setting_ok;
/* Disable configuration file options incompatible with 9.3 */
if (server_version_num < 90400)
check_93_config();
/*
* Detecting the intended cloning mode
*/