You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/29 20:13:59 UTC
mem3 commit: updated refs/heads/master to be49046
Repository: couchdb-mem3
Updated Branches:
refs/heads/master 148093f3c -> be490465c
fix stats paths
Project: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/commit/be490465
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/tree/be490465
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/diff/be490465
Branch: refs/heads/master
Commit: be490465c1232bffe291d725d280bff003b584dc
Parents: 148093f
Author: Robert Newson <rn...@apache.org>
Authored: Fri Aug 29 19:12:54 2014 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Fri Aug 29 19:13:37 2014 +0100
----------------------------------------------------------------------
priv/stats_descriptions.cfg | 6 +++---
src/mem3_shards.erl | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/be490465/priv/stats_descriptions.cfg
----------------------------------------------------------------------
diff --git a/priv/stats_descriptions.cfg b/priv/stats_descriptions.cfg
index a564dd9..569d16a 100644
--- a/priv/stats_descriptions.cfg
+++ b/priv/stats_descriptions.cfg
@@ -1,12 +1,12 @@
-{[dbcore, mem3, shard_cache, eviction], [
+{[mem3, shard_cache, eviction], [
{type, counter},
{desc, <<"number of shard cache evictions">>}
]}.
-{[dbcore, mem3, shard_cache, hit], [
+{[mem3, shard_cache, hit], [
{type, counter},
{desc, <<"number of shard cache hits">>}
]}.
-{[dbcore, mem3, shard_cache, miss], [
+{[mem3, shard_cache, miss], [
{type, counter},
{desc, <<"number of shard cache misses">>}
]}.
http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/be490465/src/mem3_shards.erl
----------------------------------------------------------------------
diff --git a/src/mem3_shards.erl b/src/mem3_shards.erl
index b0d22ac..11cf376 100644
--- a/src/mem3_shards.erl
+++ b/src/mem3_shards.erl
@@ -158,14 +158,14 @@ handle_call(_Call, _From, St) ->
{noreply, St}.
handle_cast({cache_hit, DbName}, St) ->
- couch_stats:increment_counter([dbcore, mem3, shard_cache, hit]),
+ couch_stats:increment_counter([mem3, shard_cache, hit]),
cache_hit(DbName),
{noreply, St};
handle_cast({cache_insert, DbName, Shards}, St) ->
- couch_stats:increment_counter([dbcore, mem3, shard_cache, miss]),
+ couch_stats:increment_counter([mem3, shard_cache, miss]),
{noreply, cache_free(cache_insert(St, DbName, Shards))};
handle_cast({cache_remove, DbName}, St) ->
- couch_stats:increment_counter([dbcore, mem3, shard_cache, eviction]),
+ couch_stats:increment_counter([mem3, shard_cache, eviction]),
{noreply, cache_remove(St, DbName)};
handle_cast(_Msg, St) ->
{noreply, St}.