From 1f9e8b85ef7bf13205929dea9b000c1f72d83e51 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 24 Jul 2015 10:08:18 -0400 Subject: [PATCH] osd/PG: use hash instead of filestore key for scrub It's doesn't matter, since it's a deterministic permutation of hte value and we're checking for equality, but avoid the filestore-specific nibblewise key to avoid confusion. Signed-off-by: Sage Weil --- src/osd/PG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index be9a5489d2bba..68d74b130382a 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -3928,7 +3928,7 @@ void PG::chunky_scrub(ThreadPool::TPHandle &handle) hobject_t end = objects.back().get_boundary(); objects.pop_back(); - if (objects.back().get_filestore_key() != end.get_filestore_key()) { + if (objects.back().get_hash() != end.get_hash()) { candidate_end = end; boundary_found = true; } -- 2.39.5