]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: Fix variable declaration in capture list in lambda 39110/head
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 28 Jan 2021 00:00:45 +0000 (01:00 +0100)
committerJason Dillaman <dillaman@redhat.com>
Thu, 28 Jan 2021 01:52:07 +0000 (20:52 -0500)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
(cherry picked from commit 461412352d490d2c543791d37278e99f2c36d395)

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);
         });