]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG::replica_scrub: don't adjust pool on max object
authorSamuel Just <sjust@redhat.com>
Fri, 3 Jun 2016 00:39:09 +0000 (17:39 -0700)
committerSamuel Just <sjust@redhat.com>
Sat, 4 Jun 2016 17:09:49 +0000 (10:09 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/PG.cc

index 34d21c7b7524731d8f99a021b6d749548d0513df..426a0f41044612d525b9c4c68bf03f54a97bc251 100644 (file)
@@ -3864,8 +3864,10 @@ void PG::replica_scrub(
   // compensate for hobject_t's with wrong pool from sloppy hammer OSDs
   hobject_t start = msg->start;
   hobject_t end = msg->end;
-  start.pool = info.pgid.pool();
-  end.pool = info.pgid.pool();
+  if (!start.is_max())
+    start.pool = info.pgid.pool();
+  if (!end.is_max())
+    end.pool = info.pgid.pool();
 
   build_scrub_map_chunk(
     map, start, end, msg->deep, msg->seed,