From: Samuel Just Date: Tue, 20 Jan 2015 19:58:51 +0000 (-0800) Subject: ReplicatedPG::on_change: clear cache at the end X-Git-Tag: v0.93~163^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=988d007e31c4f28792403abf326d45bf4b73403c;p=ceph.git ReplicatedPG::on_change: clear cache at the end Signed-off-by: Samuel Just --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 719258008ae8..87ee05cdcc19 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -9865,11 +9865,6 @@ void ReplicatedPG::on_change(ObjectStore::Transaction *t) hit_set_clear(); } - // we don't want to cache object_contexts through the interval change - // NOTE: we actually assert that all currently live references are dead - // by the time the flush for the next interval completes. - object_contexts.clear(); - // requeue everything in the reverse order they should be // reexamined. clear_scrub_reserved(); @@ -9932,6 +9927,11 @@ void ReplicatedPG::on_change(ObjectStore::Transaction *t) debug_op_order.clear(); unstable_stats.clear(); + + // we don't want to cache object_contexts through the interval change + // NOTE: we actually assert that all currently live references are dead + // by the time the flush for the next interval completes. + object_contexts.clear(); } void ReplicatedPG::on_role_change()