]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: break out of run_sync() if going down
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 21 Mar 2016 23:48:01 +0000 (16:48 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 23 Mar 2016 17:35:28 +0000 (10:35 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_sync.cc

index 1269e55edf2fcab7260ba022ea870308576cacc9..38f92edb98a452a6633f7827c01b9e70a6004380 100644 (file)
@@ -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;