]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: AuthMonitor: delete auth_handler while increasing max_global_id 135/head
authorJoao Eduardo Luis <joao.luis@inktank.com>
Fri, 22 Mar 2013 00:49:28 +0000 (00:49 +0000)
committerJoao Eduardo Luis <joao.luis@inktank.com>
Fri, 22 Mar 2013 01:21:00 +0000 (01:21 +0000)
commit71ec9c6bd54d560cc2bca4b6d0dbb3e6961df135
treee3f4d0ac0a2dfba15483a53dc7ecc508b9360cda
parentd67eee1d11d313817fae5a672ab835777a6601e2
mon: AuthMonitor: delete auth_handler while increasing max_global_id

By not deleting and setting NULL the session's auth_handler, we could
hit a scenario in which we'd end up dispatching a previously-wait-listed
auth message and we wouldn't start its auth session.

This only happened when increasing max_global_id via Paxos (in which case
we would wait-list the message) and would only be noticeable when running
with cephx disabled.

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