couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject chttpd commit: updated refs/heads/master to a49c474
Date Thu, 27 Aug 2015 22:07:46 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 994f132fd -> a49c47417


Capture histogram data for _bulk_requests

COUCHDB-2792


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/a49c4741
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/a49c4741
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/a49c4741

Branch: refs/heads/master
Commit: a49c47417cc9190f8b5afe0c058c9a742a6cf587
Parents: 994f132
Author: Robert Newson <rnewson@apache.org>
Authored: Thu Aug 27 21:29:55 2015 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Thu Aug 27 22:48:46 2015 +0100

----------------------------------------------------------------------
 src/chttpd_db.erl | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/a49c4741/src/chttpd_db.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl
index 9b064ce..9457ac1 100644
--- a/src/chttpd_db.erl
+++ b/src/chttpd_db.erl
@@ -383,6 +383,7 @@ db_req(#httpd{method='POST',path_parts=[_,<<"_bulk_docs">>],
user_ctx=Ctx}=Req,
     DocsArray0 ->
         DocsArray0
     end,
+    couch_stats:update_histogram([couchdb, httpd, bulk_docs], length(DocsArray)),
     W = case couch_util:get_value(<<"w">>, JsonProps) of
     Value when is_integer(Value) ->
         integer_to_list(Value);


Mime
View raw message