1. Replace the ugly dynamic_cast with the call
of obj_to_raw() to access the raw meta obj.
Fixes: https://tracker.ceph.com/issues/16767
Signed-off-by: Yixin Jin <yjin77@yahoo.ca>
meta_obj->set_in_extra_data(true);
rgw_raw_obj meta_raw_obj;
- dynamic_cast<rgw::sal::RadosObject*>(meta_obj.get())->get_raw_obj(&meta_raw_obj);
-
+ store->getRados()->obj_to_raw(meta_obj->get_bucket()->get_placement_rule(),
+ meta_obj->get_obj(),
+ &meta_raw_obj);
rgw_rados_ref meta_obj_ref;
r = store->getRados()->get_raw_obj_ref(dpp, meta_raw_obj, &meta_obj_ref);
if (r < 0) {