]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: Fix variable declaration in capture list in lambda 39115/head
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 28 Jan 2021 00:00:45 +0000 (01:00 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 28 Jan 2021 00:00:45 +0000 (01:00 +0100)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/librbd/migration/QCOWFormat.cc

index 0499fa2a97c2f4fa322c7d74f6fb8fc5c5e4c3d1..4dfbbf0944caac53f7cc0877bcebb60acf67af55 100644 (file)
@@ -718,7 +718,7 @@ private:
     previous_l2_table = l2_table;
     l2_table.reset();
 
-    auto ctx = new LambdaContext([this, snap_id](int r) {
+    auto ctx = new LambdaContext([this, snap_id = snap_id](int r) {
       boost::asio::post(qcow_format->m_strand, [this, snap_id, r]() {
         handle_get_l2_table(r, snap_id);
         });