]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: maybe coredump when reload operator happened 29733/head
authorRichard Bai(白学余) <baixueyu@inspur.com>
Mon, 19 Aug 2019 08:54:52 +0000 (16:54 +0800)
committerRichard Bai(白学余) <baixueyu@inspur.com>
Tue, 15 Oct 2019 08:12:44 +0000 (16:12 +0800)
Fixes: https://tracker.ceph.com/issues/42119
Signed-off-by: Richard Bai(白学余) <baixueyu@inspur.com>
src/rgw/rgw_rados.cc

index 55fb8869cdaf7db75eb81cdd51f7b2bb6bad7e17..d098d00dc44fbac6197cdd84074b64b40fa80ad1 100644 (file)
@@ -1256,6 +1256,9 @@ int RGWRados::init_complete()
   data_notifier = new RGWDataNotifier(this);
   data_notifier->start();
 
+  binfo_cache = new RGWChainedCacheImpl<bucket_info_entry>;
+  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<bucket_info_entry>;
-  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) {