/* Set metadata locally */
RGWQuotaInfo quota_info;
RGWObjState* astate;
- std::unique_ptr<rgw::sal::User> user = this->driver->get_user(this->get_bucket()->get_owner());
this->get_obj_state(dpp, &astate, y);
for (auto it = attrs.begin(); it != attrs.end(); ++it) {
quota_info.max_objects = std::stoull(it->second.c_str());
attrs.erase(it->first);
} else if (it->first == "max_buckets") {
- user->set_max_buckets(std::stoull(it->second.c_str()));
attrs.erase(it->first);
} else {
ldpp_dout(dpp, 20) << "D4N Filter: Unexpected attribute; not locally set." << dendl;
}
}
- user->set_info(quota_info);
this->set_obj_state(*astate);
/* Set attributes locally */
/* Set metadata locally */
RGWObjState* astate;
RGWQuotaInfo quota_info;
- std::unique_ptr<rgw::sal::User> user = source->driver->get_user(source->get_bucket()->get_owner());
source->get_obj_state(dpp, &astate, y);
for (auto& attr : attrs) {
quota_info.max_objects = std::stoull(attr.second.c_str());
attrs.erase(attr.first);
} else if (attr.first == "max_buckets") {
- user->set_max_buckets(std::stoull(attr.second.c_str()));
attrs.erase(attr.first);
} else {
ldpp_dout(dpp, 20) << "D4NFilterObject::D4NFilterReadOp::" << __func__ << "(): Unexpected attribute; not locally set." << dendl;
}
}
- user->set_info(quota_info);
source->set_obj_state(*astate);
/* Set attributes locally */