]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: abstract SessionMapStore from SessionMap
authorJohn Spray <john.spray@redhat.com>
Fri, 16 Jan 2015 00:00:56 +0000 (00:00 +0000)
committerJohn Spray <john.spray@redhat.com>
Fri, 16 Jan 2015 00:45:25 +0000 (00:45 +0000)
commitea153c3f057c8098d2758986fec36cb09df3d9ea
tree1193b5cfee0cfcfab20c18f607b6338364d5a7cb
parentc3fb34c1e3eea5c1d703e1b7010a762ce225ae53
mds: abstract SessionMapStore from SessionMap

This is similar to what I did for InodeStore a while back:
introduce a logical separation between the persisted attributers
(and their encoding) and the live/runtime behavioural code.  This
results in a handy SessionMapStore class that can be used for
encode/decode from tools.

Also give it a reset_state method so that it matches the
prototype of the MDSTable subclasses for the benefit of
cephfs-table-tool.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDS.cc
src/mds/SessionMap.cc
src/mds/SessionMap.h
src/test/encoding/types.h