Signed-off-by: Casey Bodley <cbodley@redhat.com>
}
}
- cr_registry = new RGWCoroutinesManagerRegistry(cct);
- ret = cr_registry->hook_to_admin_command("cr dump");
+ auto crs = std::unique_ptr<RGWCoroutinesManagerRegistry>{
+ new RGWCoroutinesManagerRegistry(cct)};
+ ret = crs->hook_to_admin_command("cr dump");
if (ret < 0) {
return ret;
}
meta_mgr = new RGWMetadataManager(cct, this);
data_log = new RGWDataChangesLog(cct, this);
+ cr_registry = crs.release();
std::swap(handles, rados);
return ret;