diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2010-07-24 18:01:48 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2010-07-24 18:01:48 +0000 |
commit | b1fa0b7889d4e790a4ea3170f2f3927b14a0bcd0 (patch) | |
tree | b840c4338425dc0b3332261bd5c7d1d8c7973260 /src/couchdb/couch_httpd_db.erl | |
parent | 5d522d879bd5fdfa892ca63166029576d5272c9f (diff) |
Merge revision 978918 from trunk:
Move the tracking of the stat {httpd, clients_requesting_changes} from couch_changes module into
the couch_httpd_db module (that stat shouldn't be affected when the changes API is used for internal
operations).
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@978919 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd_db.erl')
-rw-r--r-- | src/couchdb/couch_httpd_db.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl index f7682422..b8d3157e 100644 --- a/src/couchdb/couch_httpd_db.erl +++ b/src/couchdb/couch_httpd_db.erl @@ -106,6 +106,9 @@ handle_changes_req(#httpd{method='GET'}=Req, Db) -> FeedChangesFun(MakeCallback(Resp)) end end, + couch_stats_collector:track_process_count( + {httpd, clients_requesting_changes} + ), WrapperFun(ChangesFun); handle_changes_req(#httpd{path_parts=[_,<<"_changes">>]}=Req, _Db) -> |