]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: Clear object context cache to get repair information
authorDavid Zafman <dzafman@redhat.com>
Sat, 24 Jun 2017 02:15:45 +0000 (19:15 -0700)
committerDavid Zafman <dzafman@redhat.com>
Sat, 24 Jun 2017 02:15:45 +0000 (19:15 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/osd/PrimaryLogPG.cc

index fc89d8eb11f739c9b497e057343d210ee2fd8031..2b6b966d1d2e859199644ecb50f6c2d9c87c3a97 100644 (file)
@@ -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<pg_shard_t> &missing_on)