From: Richard Bai(白学余) Date: Mon, 19 Aug 2019 08:54:52 +0000 (+0800) Subject: rgw: maybe coredump when reload operator happened X-Git-Tag: v15.1.0~86^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=78125a8dba6b59b012c642c6b756a2c4f34912b1;p=ceph.git rgw: maybe coredump when reload operator happened Fixes: https://tracker.ceph.com/issues/42119 Signed-off-by: Richard Bai(白学余) --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 55fb8869cda..d098d00dc44 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1256,6 +1256,9 @@ int RGWRados::init_complete() data_notifier = new RGWDataNotifier(this); data_notifier->start(); + binfo_cache = new RGWChainedCacheImpl; + binfo_cache->init(svc.cache); + lc = new RGWLC(); lc->initialize(cct, this->store); @@ -1273,9 +1276,6 @@ int RGWRados::init_complete() } ldout(cct, 20) << __func__ << " bucket index max shards: " << bucket_index_max_shards << dendl; - binfo_cache = new RGWChainedCacheImpl; - binfo_cache->init(svc.cache); - bool need_tombstone_cache = !svc.zone->get_zone_data_notify_to_map().empty(); /* have zones syncing from us */ if (need_tombstone_cache) {