summaryrefslogtreecommitdiff
path: root/src/osdc
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@inktank.com>2012-07-18 10:24:58 -0700
committerJosh Durgin <josh.durgin@inktank.com>2012-07-18 12:59:28 -0700
commit0b579546cfddec35095b2aec753028d8e63f3533 (patch)
tree53c1af7edd9b30aebefffd217eeb1fff379aafd9 /src/osdc
parent2869039b79027e530c2863ebe990662685e4bbe6 (diff)
downloadceph-0b579546cfddec35095b2aec753028d8e63f3533.tar.gz
ObjectCacher: fix cache_bytes_hit accounting
Misses are not hits! Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'src/osdc')
-rw-r--r--src/osdc/ObjectCacher.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/osdc/ObjectCacher.cc b/src/osdc/ObjectCacher.cc
index a9f8d8aeefc..f20506b29ec 100644
--- a/src/osdc/ObjectCacher.cc
+++ b/src/osdc/ObjectCacher.cc
@@ -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);
}