From 8cb14783e4bc1e127f22e3ffdc348931856a3ee9 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Mon, 21 Mar 2016 16:48:01 -0700 Subject: [PATCH] rgw: break out of run_sync() if going down Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_sync.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index 1269e55edf2fc..38f92edb98a45 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; -- 2.39.5