Signed-off-by: Sage Weil <sage@redhat.com>
// peering event?
switch (m->get_type()) {
+ case CEPH_MSG_PING:
+ dout(10) << "ping from " << m->get_source() << dendl;
+ m->put();
+ return;
+
case MSG_OSD_PG_CREATE2:
return handle_fast_pg_create(static_cast<MOSDPGCreate2*>(m));
case MSG_OSD_PG_QUERY:
dout(20) << "_dispatch " << m << " " << *m << dendl;
switch (m->get_type()) {
-
- // -- don't need lock --
- case CEPH_MSG_PING:
- dout(10) << "ping from " << m->get_source() << dendl;
- m->put();
- break;
-
// -- don't need OSDMap --
// map and replication
bool ms_can_fast_dispatch_any() const override { return true; }
bool ms_can_fast_dispatch(const Message *m) const override {
switch (m->get_type()) {
+ case CEPH_MSG_PING:
case CEPH_MSG_OSD_OP:
case CEPH_MSG_OSD_BACKOFF:
case MSG_OSD_PG_CREATE2: