]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: subset_last_update must be at least log.tail
authorSamuel Just <sam.just@inktank.com>
Mon, 13 May 2013 21:23:00 +0000 (14:23 -0700)
committerSamuel Just <sam.just@inktank.com>
Wed, 22 May 2013 17:34:49 +0000 (10:34 -0700)
Fixes: 5020
Backport: bobtail, cuttlefish
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
(cherry picked from commit 72bf5f4813c273210b5ced7f7793bc1bf813690c)

src/osd/PG.cc

index f4ad633ab13210c4117268110fddac06d458754b..e78f16187f1e36c896e0ea18fab8b922d984a35a 100644 (file)
@@ -4145,7 +4145,7 @@ void PG::chunky_scrub() {
         scrubber.block_writes = true;
 
         // walk the log to find the latest update that affects our chunk
-        scrubber.subset_last_update = eversion_t();
+        scrubber.subset_last_update = log.tail;
         for (list<pg_log_entry_t>::iterator p = log.log.begin();
              p != log.log.end();
              ++p) {