From: Willem Jan Withagen Date: Sat, 21 Nov 2020 21:58:13 +0000 (+0100) Subject: librbd: Fix variable declaration in capture list in lambda X-Git-Tag: v16.1.0~505^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=80ae2d286c6acf7a734893488a8863e184107adf;p=ceph.git librbd: Fix variable declaration in capture list in lambda Fixes: https://github.com/ceph/ceph/pull/38000 Signed-off-by: Willem Jan Withagen --- diff --git a/src/librbd/migration/HttpStream.cc b/src/librbd/migration/HttpStream.cc index e035092dc761..14c19af09f65 100644 --- a/src/librbd/migration/HttpStream.cc +++ b/src/librbd/migration/HttpStream.cc @@ -105,7 +105,7 @@ void HttpStream::read(io::Extents&& byte_extents, bufferlist* data, req.set(boost::beast::http::field::range, range.str()); m_http_client->issue(std::move(req), - [this, byte_offset, byte_length, ctx](int r, HttpResponse&& response) { + [this, byte_offset=byte_offset, byte_length=byte_length, ctx](int r, HttpResponse&& response) { handle_read(r, std::move(response), byte_offset, byte_length, &ctx->bl, ctx); });