From: Xuehan Xu Date: Mon, 5 Jul 2021 13:41:03 +0000 (+0800) Subject: crimson/os/seastore: fix lambda capture issue in Journal::scan_extents() X-Git-Tag: v17.1.0~1476^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0e4c9722a1126a9c9a111ae23343ea52b95022be;p=ceph.git crimson/os/seastore: fix lambda capture issue in Journal::scan_extents() Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/os/seastore/journal.cc b/src/crimson/os/seastore/journal.cc index 9ff9ad40e7675..63f0ef2cdec5a 100644 --- a/src/crimson/os/seastore/journal.cc +++ b/src/crimson/os/seastore/journal.cc @@ -655,11 +655,11 @@ Journal::scan_extents_ret Journal::scan_extents( crimson::ct_error::assert_all{ "Invalid error in Journal::scan_extents" } - ).safe_then([&](auto segment_header) { + ).safe_then([&, bytes_to_read](auto segment_header) { auto segment_nonce = segment_header.segment_nonce; return seastar::do_with( found_record_handler_t( - [&]( + [&, bytes_to_read]( paddr_t base, const record_header_t &header, const bufferlist &mdbuf) mutable {