Need to do the action through the bucket instance handler
and not through the bucket handler, otherwise it's wrongly
recorded (and wrongly replayed, ouch).
Fixes: #5791
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
string oid;
store->get_bucket_meta_oid(bucket, oid);
rgw_obj obj(store->zone.domain_root, oid);
- return store->meta_mgr->set_attrs(bucket_meta_handler, oid,
+
+ string key;
+ store->get_bucket_instance_entry(bucket, key); /* we want the bucket instance name without
+ the oid prefix cruft */
+ return store->meta_mgr->set_attrs(bucket_instance_meta_handler, key,
obj, attrs, rmattrs, objv_tracker);
}