]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ObjectCacher: fix cache_bytes_hit accounting
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 18 Jul 2012 17:24:58 +0000 (10:24 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 18 Jul 2012 19:59:28 +0000 (12:59 -0700)
Misses are not hits!

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/osdc/ObjectCacher.cc

index a9f8d8aeefc4e55e2a197062313042117468b945..f20506b29ec2cd181c376b3754a826a22ce61b94 100644 (file)
@@ -1004,7 +1004,6 @@ int ObjectCacher::_readx(OSDRead *rd, ObjectSet *oset, Context *onfinish,
   if (!success) {
     if (perfcounter && external_call) {
       perfcounter->inc(l_objectcacher_data_read, total_bytes_read);
-      perfcounter->inc(l_objectcacher_cache_bytes_hit, bytes_in_cache);
       perfcounter->inc(l_objectcacher_cache_bytes_miss, bytes_not_in_cache);
       perfcounter->inc(l_objectcacher_cache_ops_miss);
     }