From 3dbfa4fd8b6b57bbe2e0676b059b10ce4862eb87 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 6 Feb 2017 23:25:15 -0500 Subject: [PATCH] osd: explicitly enumerate ops we can dispatch This prevents random messages from falling into and OpRequest and dispatch_op(). Signed-off-by: Sage Weil --- src/osd/OSD.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 5cc7eca5390..ba9352fef16 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -6519,7 +6519,15 @@ void OSD::_dispatch(Message *m) // -- need OSDMap -- - default: + case MSG_OSD_PG_CREATE: + case MSG_OSD_PG_NOTIFY: + case MSG_OSD_PG_QUERY: + case MSG_OSD_PG_LOG: + case MSG_OSD_PG_REMOVE: + case MSG_OSD_PG_INFO: + case MSG_OSD_PG_TRIM: + case MSG_OSD_BACKFILL_RESERVE: + case MSG_OSD_RECOVERY_RESERVE: { OpRequestRef op = op_tracker.create_request(m); // no map? starting up? -- 2.39.5