]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: on_chnage: clarify object_contexts.clear() comment
authorSamuel Just <sjust@redhat.com>
Wed, 14 Jan 2015 16:41:27 +0000 (08:41 -0800)
committerSamuel Just <sjust@redhat.com>
Thu, 15 Jan 2015 05:06:38 +0000 (21:06 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ReplicatedPG.cc

index bee5b4112a97987e472311eb394343255b02a63c..719258008ae8cbcb45478945749959103a9ba23d 100644 (file)
@@ -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