]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: always set up session; move waitlist logic
authorSage Weil <sage@redhat.com>
Tue, 29 Sep 2015 13:49:50 +0000 (09:49 -0400)
committerSage Weil <sage@redhat.com>
Mon, 5 Oct 2015 12:37:49 +0000 (08:37 -0400)
commita87582684a74db630ed055834d99425c5a8bee70
tree86b6ad7dc29b047ede3a30382271c22deade365b
parentbba3ab367e5ff5345fc14d87b1fa6eb82b8cfb1b
mon: always set up session; move waitlist logic

Unconditionally attach a Session, so that when we push an op back through
dispatch_op it isn't in a weird broken state.

Move the waitinglist check to the bottom.  Use s->global_id == 0 to tell
whether a client has authenticated, and zap sessions based on that.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/Monitor.cc