]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: reuse do_omap_get_values in _get_attrs
authormyoungwon oh <ohmyoungwon@gmail.com>
Thu, 5 Dec 2024 05:00:41 +0000 (05:00 +0000)
committermyoungwon oh <ohmyoungwon@gmail.com>
Thu, 20 Feb 2025 12:28:09 +0000 (12:28 +0000)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/crimson/os/seastore/seastore.cc

index 6be5d72f1d0be7cae32210c8620120a8f7e5c0f2..0d0f777b4150c96d8d317c5b3fd68e5880fa58ef 100644 (file)
@@ -1280,10 +1280,8 @@ SeaStore::Shard::_get_attrs(
   LOG_PREFIX(SeaStoreS::_get_attrs);
   DEBUGT("...", t);
   auto& layout = onode.get_layout();
-  return omap_list(onode, layout.xattr_root, t, std::nullopt,
-    OMapManager::omap_list_config_t()
-      .with_inclusive(false, false)
-      .without_max()
+  return do_omap_get_values(t, onode, std::nullopt,
+    onode.get_layout().xattr_root
   ).si_then([&layout, &t, FNAME](auto p) {
     auto& attrs = std::get<1>(p);
     DEBUGT("got {} attrs, OI length=0x{:x}, SS length=0x{:x}",