]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/seastore.h: remove non-const repeat_with_onode
authorSamuel Just <sjust@redhat.com>
Wed, 26 May 2021 22:39:12 +0000 (15:39 -0700)
committerSamuel Just <sjust@redhat.com>
Wed, 26 May 2021 23:54:04 +0000 (23:54 +0000)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/seastore.h

index ab0513ec57025b982e1289b0ba419b128a804306..f46990e4b3442d60b8eff5e59f9435ac11bcdf19 100644 (file)
@@ -167,35 +167,6 @@ private:
       });
   }
 
-  template <typename Ret, typename F>
-  auto repeat_with_onode(
-    CollectionRef ch,
-    const ghobject_t &oid,
-    F &&f) {
-    return seastar::do_with(
-      oid,
-      Ret{},
-      TransactionRef(),
-      OnodeRef(),
-      std::forward<F>(f),
-      [=](auto &oid, auto &ret, auto &t, auto &onode, auto &f) {
-       return repeat_eagain([&, this] {
-         t = transaction_manager->create_transaction();
-         return onode_manager->get_onode(
-           *t, oid
-         ).safe_then([&](auto onode_ret) {
-           onode = std::move(onode_ret);
-           return f(*t, *onode);
-         }).safe_then([&ret](auto _ret) {
-           ret = _ret;
-         });
-       }).safe_then([&ret] {
-         return seastar::make_ready_future<Ret>(ret);
-       });
-      });
-  }
-
-
   template <typename Ret, typename F>
   auto repeat_with_onode(
     CollectionRef ch,