From 6a40350736718eeb281a2bf67cc3b6a8171b44cf Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Mon, 19 Oct 2015 11:11:21 -0700 Subject: [PATCH] rgw: don't read/init sync status if meta master Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_sync.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index b722fe55e41a6..4a64cb3e06b66 100644 --- a/src/rgw/rgw_sync.cc +++ b/src/rgw/rgw_sync.cc @@ -1106,12 +1106,20 @@ int RGWRemoteMetaLog::fetch(int num_shards, vector& clone_markers) int RGWRemoteMetaLog::read_sync_status(rgw_meta_sync_status *sync_status) { + if (store->is_meta_master()) { + return 0; + } + RGWObjectCtx obj_ctx(store, NULL); return run(new RGWReadSyncStatusCoroutine(async_rados, store, obj_ctx, sync_status)); } int RGWRemoteMetaLog::init_sync_status(int num_shards) { + if (store->is_meta_master()) { + return 0; + } + RGWObjectCtx obj_ctx(store, NULL); return run(new RGWInitSyncStatusCoroutine(async_rados, store, &http_manager, obj_ctx, num_shards)); } -- 2.39.5