]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: add NEW session state
authorSage Weil <sage@newdream.net>
Wed, 23 Dec 2009 19:52:19 +0000 (11:52 -0800)
committerSage Weil <sage@newdream.net>
Tue, 29 Dec 2009 04:05:32 +0000 (20:05 -0800)
commited96d871de80c14e5b4915d2a75cafdcf976e2a1
treee34ab121b6aef03be9cfccfd31d60062bea4cd81
parent076e0dd7986ef5fde403847acfe6c4dae6130f7c
mds: add NEW session state

We want to register new sessions in the map so that they can be found when
we replay ESession events in the log.  Otherwise a client that connects
to the mds early will have one Session* on the connection, and another in
the map, and reconnect will fail.

Make sure we remove NEW sessions from the map on connection reset, so that
things gets freed.

Also, take mds_lock in ms_verify_authorizer.
src/mds/MDS.cc
src/mds/Server.cc
src/mds/SessionMap.h
src/mds/journal.cc