<< ret << dendl;
return ret;
}
- return commit_logging_object(conf, target_bucket, dpp, y, last_committed);
-}
-
-int commit_logging_object(const configuration& conf,
- const std::unique_ptr<rgw::sal::Bucket>& target_bucket,
- const DoutPrefixProvider *dpp,
- optional_yield y,
- std::string* last_committed) {
std::string obj_name;
if (const int ret = target_bucket->get_logging_object_name(obj_name, conf.target_prefix, y, dpp, nullptr); ret < 0) {
ldpp_dout(dpp, 1) << "ERROR: failed to get name of logging object of logging bucket '" <<
std::string* last_committed,
std::string* err_message = nullptr);
-// commit the pending log object to the log bucket
-// use this for cleanup, when new pending object is not needed
-// and target bucket is known
-// if "last_committed" is not null, it will be set to the name of the last committed object
-int commit_logging_object(const configuration& conf,
- const std::unique_ptr<rgw::sal::Bucket>& target_bucket,
- const DoutPrefixProvider *dpp,
- optional_yield y,
- std::string* last_committed);
-
-// commit the pending log object to the log bucket
-// use this for cleanup, when new pending object is not needed
-// and target bucket shoud be loaded based on the configuration
-// if "last_committed" is not null, it will be set to the name of the last committed object
-int commit_logging_object(const configuration& conf,
- const DoutPrefixProvider *dpp,
- rgw::sal::Driver* driver,
- const std::string& tenant_name,
- optional_yield y,
- std::string* last_committed);
-
// return the oid of the object holding the name of the temporary logging object
// bucket - log bucket
// prefix - logging prefix from configuration. should be used when multiple buckets log into the same log bucket