From: Yehuda Sadeh Date: Mon, 21 Mar 2016 23:48:01 +0000 (-0700) Subject: rgw: break out of run_sync() if going down X-Git-Tag: v10.1.1~128^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8cb14783e4bc1e127f22e3ffdc348931856a3ee9;p=ceph.git rgw: break out of run_sync() if going down Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index 1269e55edf2f..38f92edb98a4 100644 --- a/src/rgw/rgw_sync.cc +++ b/src/rgw/rgw_sync.cc @@ -1878,6 +1878,10 @@ int RGWRemoteMetaLog::run_sync() } do { + if (going_down.read()) { + ldout(store->ctx(), 1) << __func__ << "(): going down" << dendl; + return 0; + } r = run(new RGWReadSyncStatusCoroutine(&sync_env, obj_ctx, &sync_status)); if (r < 0 && r != -ENOENT) { ldout(store->ctx(), 0) << "ERROR: failed to fetch sync status r=" << r << dendl;