From 994525adf5e35719b375f2d1f3bcd4de0d0e51ab Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 5 Oct 2010 11:05:55 -0700 Subject: [PATCH] mds: fix typo in EMetaBlob encoder This was wrongly setting the dir_layout_exists flag to true. Signed-off-by: Sage Weil --- src/mds/events/EMetaBlob.h | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/mds/events/EMetaBlob.h b/src/mds/events/EMetaBlob.h index c70bb50141459..205a80880711f 100644 --- a/src/mds/events/EMetaBlob.h +++ b/src/mds/events/EMetaBlob.h @@ -89,7 +89,7 @@ public: if (i.is_dir()) { ::encode(dft, _enc); ::encode(sbl, _enc); - ::encode((dl ? true : false), _enc); + ::encode((defl ? true : false), _enc); if (defl) ::encode(*defl, _enc); } @@ -103,21 +103,6 @@ public: ::encode(struct_v, bl); assert(_enc.length()); bl.append(_enc); - /* - ::encode(dn, bl); - ::encode(dnfirst, bl); - ::encode(dnlast, bl); - ::encode(dnv, bl); - ::encode(inode, bl); - ::encode(xattrs, bl); - if (inode.is_symlink()) - ::encode(symlink, bl); - if (inode.is_dir()) { - ::encode(dirfragtree, bl); - ::encode(snapbl, bl); - } - ::encode(dirty, bl); - */ } void decode(bufferlist::iterator &bl) { __u8 struct_v; @@ -133,7 +118,7 @@ public: if (inode.is_dir()) { ::decode(dirfragtree, bl); ::decode(snapbl, bl); - if (struct_v >=2 ) { + if (struct_v >= 2) { bool dir_layout_exists; ::decode(dir_layout_exists, bl); if (dir_layout_exists) { -- 2.39.5