couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [2/3] couch-mrview commit: updated refs/heads/master to 1a6bd40
Date Thu, 16 Oct 2014 09:36:15 GMT
Rename stats group from `couchjs` to `mrview`

`couchjs` name is strictly points to the default JavaScript query server
while actually mrview work with various ones. You would be confused
seeing these metrics incremented when your actual query server is on
Clojure or Python.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/commit/69a5957a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/tree/69a5957a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/diff/69a5957a

Branch: refs/heads/master
Commit: 69a5957a54f36f5edc960e9c460f322d31e55cd6
Parents: 7120686
Author: Alexander Shorin <kxepal@apache.org>
Authored: Tue Oct 14 22:30:47 2014 +0400
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Tue Oct 14 22:30:47 2014 +0400

----------------------------------------------------------------------
 priv/stats_descriptions.cfg  | 8 ++++----
 src/couch_mrview_updater.erl | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/69a5957a/priv/stats_descriptions.cfg
----------------------------------------------------------------------
diff --git a/priv/stats_descriptions.cfg b/priv/stats_descriptions.cfg
index 8d8682f..9563467 100644
--- a/priv/stats_descriptions.cfg
+++ b/priv/stats_descriptions.cfg
@@ -14,11 +14,11 @@
 % a trailing full-stop / period
 % Please keep this in alphabetical order
 
-{[couchdb, couchjs, map_doc], [
+{[couchdb, mrview, map_doc], [
     {type, counter},
-    {desc, <<"number of documents mapped in the couchjs view server">>}
+    {desc, <<"number of documents mapped in the view server">>}
 ]}.
-{[couchdb, couchjs, emits], [
+{[couchdb, mrview, emits], [
     {type, counter},
-    {desc, <<"number of invocations of `emit' in map functions in the couchjs view
server">>}
+    {desc, <<"number of invocations of `emit' in map functions in the view server">>}
 ]}.

http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/69a5957a/src/couch_mrview_updater.erl
----------------------------------------------------------------------
diff --git a/src/couch_mrview_updater.erl b/src/couch_mrview_updater.erl
index 6700836..e0b3e1e 100644
--- a/src/couch_mrview_updater.erl
+++ b/src/couch_mrview_updater.erl
@@ -148,7 +148,7 @@ map_docs(Parent, State0) ->
             end,
             FoldFun = fun(Docs, Acc) ->
                 LenDocs = length(Docs),
-                couch_stats:increment_counter([couchdb, couchjs, map_docs], 
+                couch_stats:increment_counter([couchdb, mrview, map_docs],
                                               LenDocs),
                 update_task(LenDocs),
                 lists:foldl(DocFun, Acc, Docs)
@@ -244,7 +244,7 @@ insert_results(DocId, [KVs | RKVs], [{Id, VKVs} | RVKVs], VKVAcc, VIdKeys)
->
             {[KV | Rest], [{Id, Key} | IdKeys]}
     end,
     InitAcc = {[], VIdKeys},
-    couch_stats:increment_counter([couchdb, couchjs, emits], length(KVs)),
+    couch_stats:increment_counter([couchdb, mrview, emits], length(KVs)),
     {Duped, VIdKeys0} = lists:foldl(CombineDupesFun, InitAcc, lists:sort(KVs)),
     FinalKVs = [{{Key, DocId}, Val} || {Key, Val} <- Duped] ++ VKVs,
     insert_results(DocId, RKVs, RVKVs, [{Id, FinalKVs} | VKVAcc], VIdKeys0).


Mime
View raw message