Skip to content

Commit

Permalink
rgw: maybe coredump when reload operator happened
Browse files Browse the repository at this point in the history
Fixes: https://tracker.ceph.com/issues/42119

Signed-off-by: Richard Bai(白学余) <baixueyu@inspur.com>
  • Loading branch information
Richard Bai(白学余) committed Oct 15, 2019
1 parent 2b7362e commit 78125a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rgw/rgw_rados.cc
Expand Up @@ -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);

Expand All @@ -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) {
Expand Down

0 comments on commit 78125a8

Please sign in to comment.