]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: Fix variable declaration in capture list in lambda 38229/head
authorWillem Jan Withagen <wjw@digiware.nl>
Sat, 21 Nov 2020 21:58:13 +0000 (22:58 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Sat, 21 Nov 2020 22:25:13 +0000 (23:25 +0100)
Fixes: https://github.com/ceph/ceph/pull/38000
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/librbd/migration/HttpStream.cc

index e035092dc76168f42b720646a0da1fdb9029c6c8..14c19af09f659d6e4cdd05ae2386f2294d306e6a 100644 (file)
@@ -105,7 +105,7 @@ void HttpStream<I>::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_offsetbyte_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);
      });