]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: Monitor: MMonGetMap doesn't require caps 2777/head
authorJoao Eduardo Luis <joao@redhat.com>
Wed, 22 Oct 2014 18:30:08 +0000 (19:30 +0100)
committerJoao Eduardo Luis <joao@redhat.com>
Wed, 22 Oct 2014 18:33:55 +0000 (19:33 +0100)
commit227ecd8b0335fd229f7b372c7ed4406e5efdbf72
treeac06a77f0521bc62b562b0f6d3b3a24b0ad307f7
parenta49d7450da35e473a10a8a9f82958731eccec83f
mon: Monitor: MMonGetMap doesn't require caps

We are dropping the requirement for MON_CAP_R for MMonGetMap.

Reason is simple enough: clients may need to contact the monitors and
obtain the latest monmap before authenticating.  This happens, for
instance, when a client calls MonClient::get_monmap_privately().  The
osd uses this function during mkfs, prior to initializing a keyring or
even so much as existing.

Fixes: #9859
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
src/mon/Monitor.cc