From 640c00456c926f2344fbf0e024568d4c19a6f3a2 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Fri, 23 Jun 2017 19:15:45 -0700 Subject: [PATCH] osd: Clear object context cache to get repair information Signed-off-by: David Zafman --- src/osd/PrimaryLogPG.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index fc89d8eb11f7..2b6b966d1d2e 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -13846,6 +13846,9 @@ void PrimaryLogPG::_scrub_finish() publish_stats_to_osd(); share_pg_info(); } + // Clear object context cache to get repair information + if (repair) + object_contexts.clear(); } bool PrimaryLogPG::check_osdmap_full(const set &missing_on) -- 2.47.3