]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: always process the message in dispatch
authorSage Weil <sage@redhat.com>
Thu, 21 Aug 2014 20:07:56 +0000 (13:07 -0700)
committerSage Weil <sage@redhat.com>
Thu, 21 Aug 2014 20:07:56 +0000 (13:07 -0700)
Nobody should be chained after teh mon, so we can safely drop any message
we don't understand.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/Monitor.cc

index 94b2d8d8cacd413cde7df18400d180150b1b76d5..1052a5a6c3a73f84d1aad2e5e1eb9d5cd9903a84 100644 (file)
@@ -3159,7 +3159,9 @@ bool Monitor::dispatch(MonSession *s, Message *m, const bool src_is_mon)
       break;
 
     default:
-      ret = false;
+      dout(1) << "dropping unexpected " << *m << dendl;
+      m->put();
+      break;
   }
 
   return ret;