From: Zhiqiang Wang Date: Thu, 13 Aug 2015 06:28:50 +0000 (+0800) Subject: mds: initialize 'divergent' to false when comparing inode_t X-Git-Tag: v9.1.0~380^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5564%2Fhead;p=ceph.git mds: initialize 'divergent' to false when comparing inode_t 'divergent' is not set in the case when all the fields of 'inode_t' are equal. Signed-off-by: Zhiqiang Wang --- diff --git a/src/mds/mdstypes.cc b/src/mds/mdstypes.cc index 136312ae14fd..28843a58a287 100644 --- a/src/mds/mdstypes.cc +++ b/src/mds/mdstypes.cc @@ -443,6 +443,7 @@ void inode_t::generate_test_instances(list& ls) int inode_t::compare(const inode_t &other, bool *divergent) const { assert(ino == other.ino); + *divergent = false; if (version == other.version) { if (rdev != other.rdev || ctime != other.ctime ||