Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 68f8fa50d -> 663273b0e


make _view_cleanup endpoint cluster aware

Currently _view_cleanup endpoint is not cluster aware, only deletes
indexes on the node that gets the request. This will make it cluster
aware, deleting unused indexes on all nodes.

JIRA: COUCHDB-2779


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

Branch: refs/heads/master
Commit: f0f4c0ddecb7b70e509a887900ec94a7f96c1eb9
Parents: 8aa7adf
Author: Mayya Sharipova <[email protected]>
Authored: Wed Aug 19 12:15:23 2015 -0400
Committer: Mayya Sharipova <[email protected]>
Committed: Wed Aug 19 12:15:23 2015 -0400

----------------------------------------------------------------------
 src/chttpd_db.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/f0f4c0dd/src/chttpd_db.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl
index a8fdc16..f5a3176 100644
--- a/src/chttpd_db.erl
+++ b/src/chttpd_db.erl
@@ -230,7 +230,7 @@ handle_compact_req(Req, _) ->
     couch_httpd:send_error(Req, 403, forbidden, Msg).
 
 handle_view_cleanup_req(Req, Db) ->
-    ok = fabric:cleanup_index_files(Db),
+    ok = fabric:cleanup_index_files_all_nodes(Db),
     send_json(Req, 202, {[{ok, true}]}).
 
 handle_design_req(#httpd{

Reply via email to