]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: Fixes bug in _scrub with checking clones
authorSamuel Just <samuelj@hq.newdream.net>
Tue, 4 Jan 2011 22:30:15 +0000 (14:30 -0800)
committerSamuel Just <samuelj@hq.newdream.net>
Tue, 4 Jan 2011 22:38:53 +0000 (14:38 -0800)
I introduced this bug in
4a4a1e53c7d380cd0b582c1d0685fd0ef4ef1711.
curclone++ not curclone--.

Signed-off-by: Samuel Just <samuelj@hq.newdream.net>
src/osd/ReplicatedPG.cc

index 2361543ee99fda7aac045191c148fe90462bc936..fc5180c235087dfa589eb6b48b8e0db4f80c7cd5 100644 (file)
@@ -4079,10 +4079,11 @@ int ReplicatedPG::_scrub(ScrubMap& scrubmap, int& errors, int& fixed)
       // ...
 
       // what's next?
+      if (curclone != snapset.clones.rend())
+       curclone++;
+
       if (curclone == snapset.clones.rend())
        head = sobject_t();
-      else
-       curclone--;
 
     } else {
       // it's unversioned.