From: Kefu Chai Date: Wed, 11 Aug 2021 10:33:41 +0000 (+0800) Subject: crimson/tools/store_nbd: do not capture unused variable X-Git-Tag: v17.1.0~1141^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42748%2Fhead;p=ceph.git crimson/tools/store_nbd: do not capture unused variable Signed-off-by: Kefu Chai --- 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()); }