}
obj = bucket->get_object(obj_key);
+
+ RGWObjState* obj_state{nullptr};
+ ret = obj->get_obj_state(dpp, &obj_state, null_yield, true);
+ if (ret < 0) {
+ return ret;
+ }
+
std::unique_ptr<rgw::sal::Object::DeleteOp> del_op
= obj->get_delete_op();
del_op->params.versioning_status
"ERROR: publishing notification failed, with error: " << ret << dendl;
} else {
// send request to notification manager
- (void) notify->publish_commit(dpp, obj->get_obj_size(),
+ (void) notify->publish_commit(dpp, obj_state->size,
ceph::real_clock::now(),
obj->get_attrs()[RGW_ATTR_ETAG].to_str(),
version_id);