From 73564ac22319d158d4bade9ab1a3832a9669d099 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Thu, 24 Sep 2015 11:38:41 -0400 Subject: [PATCH] osd/PG: For performance start scrub scan at pool to skip temp objects Signed-off-by: David Zafman (cherry picked from commit 05d79faa512210b0f0a91640d18db33b887a6e73) --- src/osd/PG.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index c13321c7b37ab..961d36ab1896b 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -3923,6 +3923,8 @@ void PG::chunky_scrub(ThreadPool::TPHandle &handle) } scrubber.start = hobject_t(); + // Don't include temporary objects when scrubbing + scrubber.start.pool = info.pgid.pool(); scrubber.state = PG::Scrubber::NEW_CHUNK; { -- 2.39.5