]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: apply log to new HitSet to capture writes after peering
authorSage Weil <sage@inktank.com>
Wed, 4 Dec 2013 22:11:53 +0000 (14:11 -0800)
committerSage Weil <sage@inktank.com>
Fri, 6 Dec 2013 22:37:28 +0000 (14:37 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc

index e983a3ea8208c4177f5aa6b66dcd5603967f0a2f..e140f7e86c187dc5c6875a53f9f8b8179db4b359 100644 (file)
@@ -8493,6 +8493,10 @@ void ReplicatedPG::hit_set_setup()
 
   // FIXME: discard any previous data for now
   hit_set_create();
+
+  // include any writes we know about from the pg log.  this doesn't
+  // capture reads, but it is better than nothing!
+  hit_set_apply_log();
 }
 
 void ReplicatedPG::hit_set_create()