]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
seastore/rbm: use move()
authormyoungwon oh <ohmyoungwon@gmail.com>
Tue, 25 May 2021 07:45:48 +0000 (16:45 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Tue, 15 Jun 2021 02:09:06 +0000 (11:09 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/crimson/os/seastore/randomblock_manager.cc

index 832f567f184ad03f2ed7d8459d2614428f332ddd..9897aa79eeccb5a148f4fc2096723964ef8cb956 100644 (file)
@@ -406,11 +406,11 @@ RandomBlockManager::abort_allocation(Transaction &t)
 RandomBlockManager::write_ertr::future<>
 RandomBlockManager::complete_allocation(Transaction &t)
 {
-  const auto alloc_blocks = t.get_rbm_allocated_blocks();
+  auto alloc_blocks = t.get_rbm_allocated_blocks();
   if (alloc_blocks.empty()) {
     return write_ertr::now();
   }
-  return seastar::do_with(alloc_blocks,
+  return seastar::do_with(move(alloc_blocks),
          [&, this] (auto &alloc_blocks) mutable {
     return crimson::do_for_each(
        alloc_blocks,