From 9bd149f0bd823535611bb00bbcc6db7ae2753f6e Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 11 Aug 2021 18:33:41 +0800 Subject: [PATCH] crimson/tools/store_nbd: do not capture unused variable Signed-off-by: Kefu Chai --- src/crimson/tools/store_nbd/fs_driver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crimson/tools/store_nbd/fs_driver.cc b/src/crimson/tools/store_nbd/fs_driver.cc index aa1462acbd8e..24f954ea9c05 100644 --- a/src/crimson/tools/store_nbd/fs_driver.cc +++ b/src/crimson/tools/store_nbd/fs_driver.cc @@ -71,7 +71,7 @@ seastar::future FSDriver::read( return seastar::make_ready_future(std::move(bl)); }), crimson::ct_error::assert_all{"Unrecoverable error in FSDriver::read"} - ).then([this, size](auto &&bl) { + ).then([size](auto &&bl) { if (bl.length() < size) { bl.append_zero(size - bl.length()); } -- 2.47.3