From e1ff09ce63162840311366ed1009f43fd5f8a893 Mon Sep 17 00:00:00 2001 From: Zhiqiang Wang Date: Thu, 13 Aug 2015 14:28:50 +0800 Subject: [PATCH] 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 --- src/mds/mdstypes.cc | 1 + 1 file changed, 1 insertion(+) 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 || -- 2.47.3