]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rados_sync.cc: fix xattr_diff() for the only_in_b checks
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 30 Oct 2014 02:14:41 +0000 (03:14 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 11 Nov 2014 12:26:37 +0000 (13:26 +0100)
commite590d42c900ea79fb008883e2298495cafa61e34
treee78659a6fe023d6ecb88b78d2101d1446ff65d86
parent04517f0dc2f582a7abc05a2dceface80b98a1fbf
rados_sync.cc: fix xattr_diff() for the only_in_b checks

In the checks to build only_in_b up the wrong const_iterator x is
build up. it should compare rhs->xattrs with xattrs entries and
not twice rhs->xattrs.

Fix for:

CID 716957 (#1 of 1): Invalid iterator comparison (MISMATCHED_ITERATOR)
 mismatched_comparison: Comparing x from rhs->xattrs to this->xattrs.end()
 from this->xattrs.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/tools/rados/rados_sync.cc