From 3c45df8182e3f7c8e8582469d72c9346cb72238a Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Tue, 26 Jul 2022 12:45:07 +0000 Subject: [PATCH] crimson/osd: move `conn` into the closure in OSD::ms_dispatch() Signed-off-by: Radoslaw Zarzynski --- src/crimson/osd/osd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crimson/osd/osd.cc b/src/crimson/osd/osd.cc index f7d5070a1452a..7a3612a011ac8 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: -- 2.39.5