]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix inode_t::compare() 8014/head
authorYan, Zheng <zyan@redhat.com>
Thu, 10 Mar 2016 02:50:07 +0000 (10:50 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 10 Mar 2016 02:50:07 +0000 (10:50 +0800)
Fixes: #15038
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/mdstypes.cc

index 8fcf03a7c92c7b3cf820f13628c868babfe2d220..5deec00cc2839806e50e35ef200f335ca56c8202 100644 (file)
@@ -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 ||