diff options
author | Greg Farnum <greg@inktank.com> | 2013-01-18 21:59:35 +0100 |
---|---|---|
committer | Greg Farnum <greg@inktank.com> | 2013-02-08 22:17:53 +0100 |
commit | 3f469baa8c589b74f6253eb01996c9439b132905 (patch) | |
tree | 67fa6695b7fc11e802043eedec1d74f3026f4467 /src/mds/events/ESession.h | |
parent | mds: EResetJournal modernization for dencoder (diff) | |
download | ceph-3f469baa8c589b74f6253eb01996c9439b132905.tar.xz ceph-3f469baa8c589b74f6253eb01996c9439b132905.zip |
mds: ESession event now uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
Diffstat (limited to 'src/mds/events/ESession.h')
-rw-r--r-- | src/mds/events/ESession.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mds/events/ESession.h b/src/mds/events/ESession.h index 1580d1234f9..74af3fd8815 100644 --- a/src/mds/events/ESession.h +++ b/src/mds/events/ESession.h @@ -47,18 +47,17 @@ class ESession : public LogEvent { inos(i), inotablev(iv) { } void encode(bufferlist &bl) const { - __u8 struct_v = 2; - ::encode(struct_v, bl); + ENCODE_START(3, 3, bl); ::encode(stamp, bl); ::encode(client_inst, bl); ::encode(open, bl); ::encode(cmapv, bl); ::encode(inos, bl); ::encode(inotablev, bl); + ENCODE_FINISH(bl); } void decode(bufferlist::iterator &bl) { - __u8 struct_v; - ::decode(struct_v, bl); + DECODE_START_LEGACY_COMPAT_LEN(3, 3, 3, bl); if (struct_v >= 2) ::decode(stamp, bl); ::decode(client_inst, bl); @@ -66,6 +65,7 @@ class ESession : public LogEvent { ::decode(cmapv, bl); ::decode(inos, bl); ::decode(inotablev, bl); + DECODE_FINISH(bl); } |