mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Fix check when tablespace mapping option used with 9.3
As pointed out by EvilElk (Github issue #91).
This commit is contained in:
2
repmgr.c
2
repmgr.c
@@ -1117,7 +1117,7 @@ do_standby_clone(void)
|
|||||||
{
|
{
|
||||||
TablespaceListCell *cell;
|
TablespaceListCell *cell;
|
||||||
|
|
||||||
if (get_server_version(upstream_conn, NULL) < 90400)
|
if (get_server_version(upstream_conn, NULL) < 90400 && !runtime_options.rsync_only)
|
||||||
{
|
{
|
||||||
log_err(_("in PostgreSQL 9.3, tablespace mapping can only be used in conjunction with --rsync-only\n"));
|
log_err(_("in PostgreSQL 9.3, tablespace mapping can only be used in conjunction with --rsync-only\n"));
|
||||||
PQfinish(upstream_conn);
|
PQfinish(upstream_conn);
|
||||||
|
|||||||
Reference in New Issue
Block a user