From: Yuval Lifshitz Date: Thu, 30 Oct 2025 08:03:26 +0000 (+0000) Subject: rgw/logging: removed unused APIs from header X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=058fe03b3ecd1fc7ca6fcb5ad4c28733d2a4ae52;p=ceph-ci.git rgw/logging: removed unused APIs from header Signed-off-by: Yuval Lifshitz (cherry picked from commit f92765ee0fb8135abb07f9cbbcf837305b4487f7) --- diff --git a/src/rgw/rgw_bucket_logging.cc b/src/rgw/rgw_bucket_logging.cc index 4fceb849dec..9e898181003 100644 --- a/src/rgw/rgw_bucket_logging.cc +++ b/src/rgw/rgw_bucket_logging.cc @@ -328,14 +328,6 @@ int commit_logging_object(const configuration& conf, << 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& 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 '" << diff --git a/src/rgw/rgw_bucket_logging.h b/src/rgw/rgw_bucket_logging.h index d95a386db89..9f010e873c7 100644 --- a/src/rgw/rgw_bucket_logging.h +++ b/src/rgw/rgw_bucket_logging.h @@ -186,27 +186,6 @@ int rollover_logging_object(const configuration& conf, 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& 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