couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject [4/4] chttpd commit: updated refs/heads/2492-compaction to 3b50727
Date Thu, 27 Aug 2015 13:34:46 GMT
fix intendation


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

Branch: refs/heads/2492-compaction
Commit: 3b507275d3d5c57359d8df186c3ae81d8510af2c
Parents: 78c6f70
Author: Robert Kowalski <robertkowalski@apache.org>
Authored: Thu Aug 27 15:34:30 2015 +0200
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Thu Aug 27 15:34:30 2015 +0200

----------------------------------------------------------------------
 src/chttpd_db.erl | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/3b507275/src/chttpd_db.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl
index fd02692..34b568b 100644
--- a/src/chttpd_db.erl
+++ b/src/chttpd_db.erl
@@ -225,15 +225,11 @@ maybe_flush_changes_feed(Acc0, Data, Len) ->
     },
     {ok, Acc}.
 
-handle_compact_req(#httpd{
-        method='POST', path_parts=[_DbName, <<"_compact">>, _DesignName | _]
-    }=Req, _Db) ->
+handle_compact_req(#httpd{method='POST', path_parts=[_DbName, <<"_compact">>,
_DesignName | _]}=Req, _Db) ->
     Msg = <<"Compactions for views must be triggered on a per-shard basis in CouchDB">>,
     couch_httpd:send_error(Req, 403, forbidden, Msg);
 
-handle_compact_req(#httpd{
-        method='POST', path_parts=[_DbName, <<"_compact">>]
-    }=Req, Db) ->
+handle_compact_req(#httpd{method='POST', path_parts=[_DbName, <<"_compact">>]}=Req,
Db) ->
     couch_httpd:validate_ctype(Req, "application/json"),
     ok = couch_db:check_is_admin(Db),
     couch_httpd:body(Req),


Mime
View raw message