]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: capture labels using new variables
authorKefu Chai <kchai@redhat.com>
Mon, 8 Feb 2021 16:34:25 +0000 (00:34 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 9 Feb 2021 03:38:22 +0000 (11:38 +0800)
structured binding does not define variables, let's capture the bound
"variables" using variables defined in the capture list.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/seastore/lba_manager/btree/lba_btree_node_impl.cc

index 81c20d1500fba4c8513d8a0f3069bad2d76a2a45..414a60ca3adda274b156388c8a8a087d984032e0 100644 (file)
@@ -211,7 +211,7 @@ LBAInternalNode::find_hole_ret LBAInternalNode::find_hole(
   return seastar::do_with(
     begin,
     L_ADDR_NULL,
-    [this, c, min_addr, len, end](auto &i, auto &ret) {
+    [this, c, min_addr, len, end=end](auto &i, auto &ret) {
       return crimson::do_until([=, &i, &ret]() -> find_hole_ertr::future<bool> {
        if (i == end) {
          return seastar::make_ready_future<bool>(true);