From: Richard Bai(白学余) Date: Mon, 19 Aug 2019 08:54:52 +0000 (+0800) Subject: rgw: maybe coredump when reload operator happened X-Git-Tag: v14.2.8~16^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0918862c3f25888ce5784ef7db9ea5091e013d35;p=ceph.git rgw: maybe coredump when reload operator happened Fixes: https://tracker.ceph.com/issues/42119 Signed-off-by: Richard Bai(白学余) (cherry picked from commit 78125a8dba6b59b012c642c6b756a2c4f34912b1) --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 0921e596d34d..19a83da62f12 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1585,6 +1585,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); @@ -1602,9 +1605,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) {