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 <zhiqiang.wang@intel.com>
This commit is contained in:
Zhiqiang Wang 2015-08-13 14:28:50 +08:00
parent d8d6bb898d
commit e1ff09ce63

View File

@ -443,6 +443,7 @@ void inode_t::generate_test_instances(list<inode_t*>& 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 ||