]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/Objecter: don't consume non-osd cmd replies
authorJohn Spray <john.spray@redhat.com>
Fri, 19 Sep 2014 18:34:17 +0000 (19:34 +0100)
committerJohn Spray <john.spray@redhat.com>
Wed, 8 Oct 2014 10:58:19 +0000 (11:58 +0100)
...so that Client can get command replies from MDSs.

Signed-off-by: John Spray <john.spray@redhat.com>
src/osdc/Objecter.cc

index ee4c49091a666c8a88a5bc8da1bc6adf3918c6f3..a2e03bbd96f1d8103a9f9a1ea30ec83ec1fad7c7 100644 (file)
@@ -581,8 +581,12 @@ bool Objecter::ms_dispatch(Message *m)
     return true;
 
   case MSG_COMMAND_REPLY:
-    handle_command_reply(static_cast<MCommandReply*>(m));
-    return true;
+    if (m->get_source().type() == CEPH_ENTITY_TYPE_OSD) {
+      handle_command_reply(static_cast<MCommandReply*>(m));
+      return true;
+    } else {
+      return false;
+    }
 
   case MSG_GETPOOLSTATSREPLY:
     handle_get_pool_stats_reply(static_cast<MGetPoolStatsReply*>(m));