]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd: drop unneccessary variant of PGBackend::getxattr()
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 18 Nov 2025 15:15:34 +0000 (15:15 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 27 Jan 2026 19:43:00 +0000 (19:43 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/ops_executer.cc
src/crimson/osd/pg_backend.cc
src/crimson/osd/pg_backend.h

index 77206b6b061de832d6015c10f713e480ff6d7c51..3b6819278aff3229eedb3673e382e981b0a1efa3 100644 (file)
@@ -1192,7 +1192,7 @@ static PG::interruptible_future<hobject_t> pgls_filter(
   const PGBackend& backend,
   const hobject_t& sobj)
 {
-  if (const auto xattr = filter.get_xattr(); !xattr.empty()) {
+  if (std::string xattr = filter.get_xattr(); !xattr.empty()) {
     logger().debug("pgls_filter: filter is interested in xattr={} for obj={}",
                    xattr, sobj);
     return backend.getxattr(sobj, std::move(xattr)).safe_then_interruptible(
index 92611a73fadfe398f70ac38c463460c01b8947fe..faec58fe51224b4e6508aa37c7b5d99c54aaf147 100644 (file)
@@ -1153,14 +1153,6 @@ PGBackend::get_attr_ierrorator::future<> PGBackend::getxattr(
   });
 }
 
-PGBackend::get_attr_ierrorator::future<ceph::bufferlist>
-PGBackend::getxattr(
-  const hobject_t& soid,
-  std::string_view key) const
-{
-  return store->get_attr(coll, ghobject_t{soid}, key);
-}
-
 PGBackend::get_attr_ierrorator::future<ceph::bufferlist>
 PGBackend::getxattr(
   const hobject_t& soid,
index 1f108ad1b5b8353d858b189b266a0762305970cc..ad7bf32492c39d1b20a08ecc61fd8fec1903d2f2 100644 (file)
@@ -281,9 +281,6 @@ public:
     const ObjectState& os,
     OSDOp& osd_op,
     object_stat_sum_t& delta_stats) const;
-  get_attr_ierrorator::future<ceph::bufferlist> getxattr(
-    const hobject_t& soid,
-    std::string_view key) const;
   get_attr_ierrorator::future<ceph::bufferlist> getxattr(
     const hobject_t& soid,
     std::string&& key) const;