]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: move case CEPH_MSG_POOLOP to OSDs group 11848/head
authorJaveme <javaloveme@gmail.com>
Wed, 9 Nov 2016 08:07:09 +0000 (16:07 +0800)
committerJaveme <javaloveme@gmail.com>
Wed, 9 Nov 2016 10:11:22 +0000 (18:11 +0800)
The message CEPH_MSG_POOLOP is processed by class OSDMonitor, it's processed
in the same way as other OSD messages in Monitor::dispatch_op(), such as the
following messages:
  CEPH_MSG_MON_GET_OSDMAP, MSG_OSD_BOOT, MSG_OSD_ALIVE...

This patch moves case CEPH_MSG_POOLOP to cases of OSDs group.

Signed-off-by: Javeme <javaloveme@gmail.com>
src/mon/Monitor.cc

index eb2e7dafcc1645d99908daa3e0fe316af4d843c6..fd8712bed8c1a2e094d986633ac2181ba09cee00 100644 (file)
@@ -3851,6 +3851,7 @@ void Monitor::dispatch_op(MonOpRequestRef op)
 
     // OSDs
     case CEPH_MSG_MON_GET_OSDMAP:
+    case CEPH_MSG_POOLOP:
     case MSG_OSD_MARK_ME_DOWN:
     case MSG_OSD_FAILURE:
     case MSG_OSD_BOOT:
@@ -3878,10 +3879,6 @@ void Monitor::dispatch_op(MonOpRequestRef op)
       paxos_service[PAXOS_PGMAP]->dispatch(op);
       break;
 
-    case CEPH_MSG_POOLOP:
-      paxos_service[PAXOS_OSDMAP]->dispatch(op);
-      break;
-
     // log
     case MSG_LOG:
       paxos_service[PAXOS_LOG]->dispatch(op);