]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/seastore: cleanup lba manager get_mappings 41607/head
authorchunmei-liu <chunmei.liu@intel.com>
Tue, 1 Jun 2021 06:44:57 +0000 (23:44 -0700)
committerchunmei-liu <chunmei.liu@intel.com>
Tue, 1 Jun 2021 06:44:57 +0000 (23:44 -0700)
Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc

index df8104b240b73452c5342b647914fdc4555caa24..94d11e31e9393868ed819dd528cf56e5a91822fe 100644 (file)
@@ -70,13 +70,13 @@ BtreeLBAManager::get_mappings(
       return extent->lookup_range(
        get_context(t),
        offset, length
-      ).safe_then([extent](auto ret) { return ret; });
-    }).safe_then([](auto &&e) {
-      logger().debug("BtreeLBAManager::get_mappings: got mappings {}", e);
-      return get_mappings_ret(
-       get_mappings_ertr::ready_future_marker{},
-       std::move(e));
-    });
+      ).safe_then([](auto &&e) {
+        logger().debug("BtreeLBAManager::get_mappings: got mappings {}", e);
+        return get_mappings_ret(
+          get_mappings_ertr::ready_future_marker{},
+          std::move(e));
+      });
+  });
 }