diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index 1269e55edf2..38f92edb98a 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;