]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix session_info_t decoding 213/head
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 5 Apr 2013 05:58:36 +0000 (13:58 +0800)
committerGreg Farnum <greg@inktank.com>
Wed, 10 Apr 2013 19:46:30 +0000 (12:46 -0700)
commita1d9cbe5af25dc7e6b5ce81ff08c854c7ee0187b
treeafbac0dd7083a019f8a0ef195f70b8083f09621b
parent4b656730ffff21132f358c2b9a63504dfbf0998d
mds: fix session_info_t decoding

commit 0bcf2ac081 changes session_info_t's format, but there is
a typo in the code that decodes old format. We also need to
handle struct_v == 1, which had the same encoding but without
the size guards (which is all handled by DECODE_START_LEGACY_COMPAT).

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
src/mds/mdstypes.cc