From 874ff632f89aee4fd2453ea9cd5d08ff975846d3 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 6 Aug 2015 11:26:31 -0700 Subject: [PATCH] rgw: fail if master zone tries to use meta sync We'll change it later, but as it is now that's the way to handle it gracefully. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_sync.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index 7c64d61891a0d..fe55d8dc4c8ce 100644 --- a/src/rgw/rgw_sync.cc +++ b/src/rgw/rgw_sync.cc @@ -1202,7 +1202,7 @@ int RGWCloneMetaLogOp::state_store_mdlog_entries_complete() int RGWMetadataSync::init() { if (store->is_meta_master()) { - return 0; + return -EINVAL; } if (!store->rest_master_conn) { -- 2.39.5