crimson/os: do not capture unused variable

silences warning like:

btree/extentmap_btree_node.h💯8: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
      [this, ec, len] (auto &extents) {
       ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2020-10-29 16:20:12 +08:00
parent 677d939b39
commit 6498d97a0e

View File

@ -97,7 +97,7 @@ struct ExtMapNode : LogicalCachedExtent {
alloc_ertr::future<std::pair<TCachedExtentRef<T>, TCachedExtentRef<T>>>
extmap_alloc_2extents(ext_context_t ec, extent_len_t len) {
return seastar::do_with(std::pair<TCachedExtentRef<T>, TCachedExtentRef<T>>(),
[this, ec, len] (auto &extents) {
[ec, len] (auto &extents) {
return crimson::do_for_each(boost::make_counting_iterator(0),
boost::make_counting_iterator(2),
[ec, len, &extents] (auto i) {