]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix DiffIterateStress test
authorSage Weil <sage@inktank.com>
Sat, 6 Apr 2013 05:28:38 +0000 (22:28 -0700)
committerSage Weil <sage@inktank.com>
Sat, 6 Apr 2013 05:28:38 +0000 (22:28 -0700)
commit79b71441f8c2a1b282fa0e85badcb7d410c8005d
tree691012f7d1ece5197b075a47dc956c37df619a5d
parentb083dece36a050ec15ac41a275aeef0ece1ac009
librbd: fix DiffIterateStress test

If we write to an interval that didn't previously exist and then discard
it so that it again doesn't exist, all during the same interval, then we
should not include it in the 'written' set (or exists set, obviously).

Similarly, when we got to look at a merged diff, we can ignore extents
that were written (and possibly zeroed) if they neither existed before nor
after.

Bump up the iteration count to get more confidence that this is actually
correct.

Signed-off-by: Sage Weil <sage@inktank.com>
src/test/librbd/test_librbd.cc