]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MgrMonitor: read cmd descs if empty on update_from_paxos() 18038/head
authorJoao Eduardo Luis <joao@suse.de>
Wed, 20 Sep 2017 16:53:40 +0000 (17:53 +0100)
committerJoao Eduardo Luis <joao@wipwd.org>
Fri, 29 Sep 2017 10:27:50 +0000 (11:27 +0100)
commit86d143722e1f16a19a56ed7a163d1dc9327c0c90
tree33fc350fc2fb8cf52cb6316913cb842f6a5cf711
parent9ee3f7ad21049d0692804d4405b4bf0f8c795ae3
mon/MgrMonitor: read cmd descs if empty on update_from_paxos()

If the MgrMonitor's `command_descs` is empty, the monitor will not send
the mgr commands to clients on `get_descriptions`. This, in turn, has
the clients sending the commands to the monitors, which will have no
idea how to handle them.

Therefore, make sure to read the `command_descs` from disk if the vector
is empty.

Fixes: http://tracker.ceph.com/issues/21300
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
(cherry picked from commit 3d06079bae0fbc096d6c3639807d9be3597e841a)
src/mon/MgrMonitor.cc