]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: Monitor: drop client msg if no session exists and msg is not MAuth
authorJoao Eduardo Luis <joao.luis@inktank.com>
Wed, 2 Oct 2013 00:54:09 +0000 (01:54 +0100)
committerJoao Eduardo Luis <joao.luis@inktank.com>
Thu, 3 Oct 2013 18:29:45 +0000 (19:29 +0100)
commitd0d61b488a5eaf84bb115954272fb61735d505d2
tree052a2e01a546d9ae3ccf6582a2395b4214be0c5a
parented1a54ecd3be6fed3410b50f318086967d10ceda
mon: Monitor: drop client msg if no session exists and msg is not MAuth

If we are not a monitor and we don't have a session yet, we must first
authenticate with the cluster.  Therefore, the first message to the
monitor must be an MAuth.  If not, we assume it's a stray message and
just drop it.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/Monitor.cc