]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: maybe coredump when reload operator happened 33149/head
authorRichard Bai(白学余) <baixueyu@inspur.com>
Mon, 19 Aug 2019 08:54:52 +0000 (16:54 +0800)
committerShyukri Shyukriev <shshyukriev@suse.com>
Sat, 8 Feb 2020 21:27:50 +0000 (23:27 +0200)
Fixes: https://tracker.ceph.com/issues/42119
Signed-off-by: Richard Bai(白学余) <baixueyu@inspur.com>
(cherry picked from commit 78125a8dba6b59b012c642c6b756a2c4f34912b1)

src/rgw/rgw_rados.cc

index 0921e596d34d4fe477c3846697e95c4a1a8313a6..19a83da62f12c1137676086bffbea68d7a5b5ac1 100644 (file)
@@ -1585,6 +1585,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);
 
@@ -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<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) {