From 0e4c9722a1126a9c9a111ae23343ea52b95022be Mon Sep 17 00:00:00 2001 From: Xuehan Xu Date: Mon, 5 Jul 2021 21:41:03 +0800 Subject: [PATCH] crimson/os/seastore: fix lambda capture issue in Journal::scan_extents() Signed-off-by: Xuehan Xu --- src/crimson/os/seastore/journal.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.39.5