You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2018/03/26 20:55:59 UTC
[couchdb] 28/33: WIP - chttpd_db.erl
This is an automated email from the ASF dual-hosted git repository.
davisp pushed a commit to branch COUCHDB-3326-clustered-purge-davisp-refactor
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 8db8ebdffc17190d02cc8ab35f56b93662cfe150
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Mon Mar 26 13:32:27 2018 -0500
WIP - chttpd_db.erl
---
src/chttpd/src/chttpd_db.erl | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/chttpd/src/chttpd_db.erl b/src/chttpd/src/chttpd_db.erl
index befcc12..65cd09e 100644
--- a/src/chttpd/src/chttpd_db.erl
+++ b/src/chttpd/src/chttpd_db.erl
@@ -604,19 +604,19 @@ db_req(#httpd{method='GET',path_parts=[_,<<"_revs_limit">>]}=Req, Db) ->
db_req(#httpd{path_parts=[_,<<"_revs_limit">>]}=Req, _Db) ->
send_method_not_allowed(Req, "PUT,GET");
-db_req(#httpd{method='PUT',path_parts=[_,<<"_purged_docs_limit">>]}=Req, Db) ->
+db_req(#httpd{method='PUT',path_parts=[_,<<"_purge_infos_limit">>]}=Req, Db) ->
Limit = chttpd:json_body(Req),
Options = [{user_ctx, Req#httpd.user_ctx}],
case chttpd:json_body(Req) of
Limit when is_integer(Limit), Limit > 0 ->
- ok = fabric:set_purged_docs_limit(Db, Limit, Options),
+ ok = fabric:set_purge_infos_limit(Db, Limit, Options),
send_json(Req, {[{<<"ok">>, true}]});
_->
throw({bad_request, "`purged_docs_limit` must be positive integer"})
end;
-db_req(#httpd{method='GET',path_parts=[_,<<"_purged_docs_limit">>]}=Req, Db) ->
- send_json(Req, fabric:get_purged_docs_limit(Db));
+db_req(#httpd{method='GET',path_parts=[_,<<"_purged_infos_limit">>]}=Req, Db) ->
+ send_json(Req, fabric:get_purge_infos_limit(Db));
% Special case to enable using an unencoded slash in the URL of design docs,
% as slashes in document IDs must otherwise be URL encoded.
--
To stop receiving notification emails like this one, please contact
davisp@apache.org.