]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: move `conn` into the closure in OSD::ms_dispatch()
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 26 Jul 2022 12:45:07 +0000 (12:45 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 26 Jul 2022 12:50:54 +0000 (12:50 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/osd.cc

index f7d5070a1452a2226af228c404b758c04c815c1c..7a3612a011ac82b33e6a03ea8f76f7e9753bb173 100644 (file)
@@ -670,7 +670,7 @@ OSD::ms_dispatch(crimson::net::ConnectionRef conn, MessageRef m)
     return {};
   }
   bool dispatched = true;
-  gate.dispatch_in_background(__func__, *this, [this, conn,
+  gate.dispatch_in_background(__func__, *this, [this, conn=std::move(conn),
                                                 m=std::move(m), &dispatched] {
     switch (m->get_type()) {
     case CEPH_MSG_OSD_MAP: