From: Samuel Just Date: Wed, 14 Jan 2015 16:41:27 +0000 (-0800) Subject: ReplicatedPG: on_chnage: clarify object_contexts.clear() comment X-Git-Tag: v0.93~163^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4b47886c5026fe884e609547efdf5bec7a256ee7;p=ceph.git ReplicatedPG: on_chnage: clarify object_contexts.clear() comment Signed-off-by: Samuel Just --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index bee5b4112a97..719258008ae8 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -9865,7 +9865,9 @@ void ReplicatedPG::on_change(ObjectStore::Transaction *t) hit_set_clear(); } - // we don't trust the object_contexts cache anymore + // 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