diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2020-03-25 14:52:26 -0500 |
---|---|---|
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | 2020-04-10 16:30:49 -0500 |
commit | 4275a496dbfcec36ff0777b1cf350fffcc7756b9 (patch) | |
tree | 9e87f41805d89b9bd8966ffff8253d82396a6504 | |
parent | e0d0391ff8a639101814fae8e74f73b2403561fd (diff) | |
download | couchdb-4275a496dbfcec36ff0777b1cf350fffcc7756b9.tar.gz |
Implement _view_cleanup for FoundationDB
-rw-r--r-- | src/chttpd/src/chttpd_db.erl | 2 | ||||
-rw-r--r-- | src/chttpd/src/chttpd_httpd_handlers.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/chttpd/src/chttpd_db.erl b/src/chttpd/src/chttpd_db.erl index 730cf3ef5..8dd0c931b 100644 --- a/src/chttpd/src/chttpd_db.erl +++ b/src/chttpd/src/chttpd_db.erl @@ -265,7 +265,7 @@ handle_compact_req(Req, _Db) -> send_method_not_allowed(Req, "POST"). handle_view_cleanup_req(Req, Db) -> - ok = fabric:cleanup_index_files_all_nodes(Db), + ok = fabric2_index:cleanup(Db), send_json(Req, 202, {[{ok, true}]}). diff --git a/src/chttpd/src/chttpd_httpd_handlers.erl b/src/chttpd/src/chttpd_httpd_handlers.erl index 3fd56c354..79ec3db8e 100644 --- a/src/chttpd/src/chttpd_httpd_handlers.erl +++ b/src/chttpd/src/chttpd_httpd_handlers.erl @@ -40,7 +40,7 @@ url_handler(<<"_session">>) -> fun chttpd_auth:handle_session_req/1; url_handler(<<"_up">>) -> fun chttpd_misc:handle_up_req/1; url_handler(_) -> no_match. -db_handler(<<"_view_cleanup">>) -> fun ?MODULE:not_implemented/2; +db_handler(<<"_view_cleanup">>) -> fun chttpd_db:handle_view_cleanup_req/2; db_handler(<<"_compact">>) -> fun chttpd_db:handle_compact_req/2; db_handler(<<"_design">>) -> fun chttpd_db:handle_design_req/2; db_handler(<<"_partition">>) -> fun chttpd_db:handle_partition_req/2; |