mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
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:
parent
d8d6bb898d
commit
e1ff09ce63
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user