From: Yan, Zheng Date: Thu, 10 Mar 2016 02:50:07 +0000 (+0800) Subject: mds: fix inode_t::compare() X-Git-Tag: v10.1.0~180^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9b79d05c5983c60747d6936a31de1a7ea901a564;p=ceph.git mds: fix inode_t::compare() Fixes: #15038 Signed-off-by: Yan, Zheng --- diff --git a/src/mds/mdstypes.cc b/src/mds/mdstypes.cc index 8fcf03a7c92c..5deec00cc283 100644 --- a/src/mds/mdstypes.cc +++ b/src/mds/mdstypes.cc @@ -448,7 +448,7 @@ int inode_t::compare(const inode_t &other, bool *divergent) const gid != other.gid || nlink != other.nlink || memcmp(&dir_layout, &other.dir_layout, sizeof(dir_layout)) || - memcmp(&layout, &other.layout, sizeof(layout)) || + layout != other.layout || old_pools != other.old_pools || size != other.size || max_size_ever != other.max_size_ever ||