From: Radoslaw Zarzynski Date: Tue, 26 Jul 2022 12:45:07 +0000 (+0000) Subject: crimson/osd: move `conn` into the closure in OSD::ms_dispatch() X-Git-Tag: v18.0.0~420^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3c45df8182e3f7c8e8582469d72c9346cb72238a;p=ceph.git crimson/osd: move `conn` into the closure in OSD::ms_dispatch() Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/crimson/osd/osd.cc b/src/crimson/osd/osd.cc index f7d5070a1452..7a3612a011ac 100644 --- a/src/crimson/osd/osd.cc +++ b/src/crimson/osd/osd.cc @@ -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: