couchdb-commits mailing list archives

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


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

Branch: refs/heads/2492-compaction
Commit: 78c6f70f65354ef13586d11f5306c5f9a0538860
Parents: dc3c8dd
Author: Robert Kowalski <robertkowalski@apache.org>
Authored: Tue Aug 25 15:45:43 2015 +0200
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Tue Aug 25 15:47:20 2015 +0200

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


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/78c6f70f/src/chttpd_db.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl
index 6d4f209..fd02692 100644
--- a/src/chttpd_db.erl
+++ b/src/chttpd_db.erl
@@ -225,6 +225,11 @@ maybe_flush_changes_feed(Acc0, Data, Len) ->
     },
     {ok, Acc}.
 
+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">>]


Mime
View raw message