]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: fix MgrStandby eating messages 15716/head
authorJohn Spray <john.spray@redhat.com>
Thu, 15 Jun 2017 19:57:36 +0000 (15:57 -0400)
committerJohn Spray <john.spray@redhat.com>
Thu, 15 Jun 2017 22:38:27 +0000 (18:38 -0400)
commitf6ba8ab7977759083f416611e80716c440a18e13
tree7a80ae64643731e7ac26be0a2eea903a10bde37b
parent0f2130ece5085e2aef75bbea332c7a9cb2d7f180
mgr: fix MgrStandby eating messages

It was failing to pass up the Mgr::ms_dispatch
return value, so messages were being consumed
even if Mgr was returning false.  Mgr returns
false to enable Client to see FSMap, so the
symptom was the Client not working.

While we're here, refactor switch into if, because
there were only two paths in the switch and we
don't expect to be adding more.

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