~ubuntu-branches/ubuntu/maverick/couchdb/maverick

« back to all changes in this revision

Viewing changes to src/couchdb/couch_httpd_stats_handlers.erl

  • Committer: Bazaar Package Importer
  • Author(s): Elliot Murphy
  • Date: 2010-08-16 19:45:48 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100816194548-cdm0mjqnbxjt5wa4
Tags: 1.0.1-0ubuntu1
* Upstream microrelease to address data loss (LP: #615224)
  - Fix data corruption bug COUCHDB-844. Please see
    http://couchdb.apache.org/notice/1.0.1.html for details.
  - Added support for replication via an HTTP/HTTP proxy.
  - Fixed various replicator bugs for interop with older
    CouchDB versions.
  - Show fields saved along with _deleted=true.
    Allows for auditing of deletes.
  - Enable basic-auth popup when required to access the server,
    to prevent people from getting locked out.
  - User interface element for querying stale (cached) views.
* debian/patches/auth_patch.patch dropped, included upstream.
* debian/patches/remove_users.patch dropped, included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
handle_stats_req(#httpd{method='GET', path_parts=[_, Mod, Key]}=Req) ->
31
31
    flush(Req),
32
 
    Stats = couch_stats_aggregator:get_json({?b2a(Mod), ?b2a(Key)}, range(Req)),
 
32
    Stats = couch_stats_aggregator:get_json({list_to_atom(binary_to_list(Mod)),
 
33
        list_to_atom(binary_to_list(Key))}, range(Req)),
33
34
    send_json(Req, {[{Mod, {[{Key, Stats}]}}]});
34
35
 
35
36
handle_stats_req(#httpd{method='GET', path_parts=[_, _Mod, _Key | _Extra]}) ->