Skip to content

Commit 116c5b4

Browse files
committed
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 <yingxin.cheng@intel.com>
1 parent 720f8e9 commit 116c5b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crimson/os/seastore/record_scanner.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ RecordScanner::read_validate_record_metadata(
120120
}
121121
TRACE("reading record group header block {}~4096", start);
122122
return read(start, block_size
123-
).safe_then([=](bufferptr bptr) mutable
123+
).safe_then([this, FNAME, nonce, block_size, &cursor](bufferptr bptr)
124124
-> read_validate_record_metadata_ret {
125125
bufferlist bl;
126126
bl.append(bptr);

0 commit comments

Comments
 (0)