when trying to disable/enbale sync on non-master zone
Fixes: https://tracker.ceph.com/issues/50201
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
(cherry picked from commit
83e89dfa3358fe91597d6714483f96b21a234ae6)
{
if (!store->svc()->zone->is_meta_master()) {
set_err_msg(err_msg, "ERROR: failed to update bucket sync: only allowed on meta master zone");
- return EINVAL;
+ return -EINVAL;
}
bool sync = op_state.will_sync_bucket();
if (sync) {