From: Yingxin Cheng Date: Mon, 13 May 2024 07:14:40 +0000 (+0800) Subject: crimson/os/seastore/record_scanner: replace [=] capturing X-Git-Tag: v20.0.0~1950^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F57434%2Fhead;p=ceph.git crimson/os/seastore/record_scanner: replace [=] capturing Capturing with = is error prone and causes compile warning. And it is wrong: * cursor should be captured by reference * mutable keyword is unnecessary Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/os/seastore/record_scanner.cc b/src/crimson/os/seastore/record_scanner.cc index 77f7cb422acf..5fab11505cef 100644 --- a/src/crimson/os/seastore/record_scanner.cc +++ b/src/crimson/os/seastore/record_scanner.cc @@ -120,7 +120,7 @@ RecordScanner::read_validate_record_metadata( } TRACE("reading record group header block {}~4096", start); return read(start, block_size - ).safe_then([=](bufferptr bptr) mutable + ).safe_then([this, FNAME, nonce, block_size, &cursor](bufferptr bptr) -> read_validate_record_metadata_ret { bufferlist bl; bl.append(bptr);