From 8b7b7c7a2379ce77173bbdfd90c98c561d786155 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 2 Jun 2016 17:39:09 -0700 Subject: [PATCH] PG::replica_scrub: don't adjust pool on max object Signed-off-by: Samuel Just --- src/osd/PG.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 34d21c7b75247..426a0f4104461 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -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, -- 2.39.5