Only allow --rsync-only option in combination with STANDBY CLONE

This commit is contained in:
Ian Barwick
2015-03-20 15:16:55 +09:00
parent 66844d057a
commit 5b4f832f3b

View File

@@ -2630,6 +2630,14 @@ check_parameters_for_action(const int action)
break;
}
if(action != STANDBY_CLONE)
{
if(runtime_options.rsync_only)
{
error_list_append(_("--rsync-only can only be used when executing STANDBY CLONE."));
}
}
return;
}