From: Orit Wasserman Date: Wed, 7 Mar 2018 10:01:21 +0000 (+0200) Subject: rgw: fix crash with rgw_run_sync_thread false X-Git-Tag: v13.0.2~39^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20769%2Fhead;p=ceph.git rgw: fix crash with rgw_run_sync_thread false Fixes: http://tracker.ceph.com/issues/20448 Signed-off-by: Orit Wasserman --- diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc index d1e80b27515f..770803edd15d 100644 --- a/src/rgw/rgw_main.cc +++ b/src/rgw/rgw_main.cc @@ -160,7 +160,11 @@ static RGWRESTMgr *set_logging(RGWRESTMgr *mgr) static RGWRESTMgr *rest_filter(RGWRados *store, int dialect, RGWRESTMgr *orig) { RGWSyncModuleInstanceRef sync_module = store->get_sync_module(); - return sync_module->get_rest_filter(dialect, orig); + if (sync_module) { + return sync_module->get_rest_filter(dialect, orig); + } else { + return orig; + } } /*