]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: trivial fix
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 15 Sep 2015 00:06:19 +0000 (17:06 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:12:47 +0000 (16:12 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_sync.cc

index d8425a567bb6a10c687287505e977acd759f9bc5..eb72eecb42eb9059cecfd423bb946e6a72734e73 100644 (file)
@@ -99,7 +99,9 @@ int RGWRemoteMetaLog::init()
 void RGWRemoteMetaLog::finish()
 {
   stop();
-  async_rados->stop();
+  if (async_rados) {
+    async_rados->stop();
+  }
   delete async_rados;
 }