This is an automated email from the ASF dual-hosted git repository. rnewson pushed a commit to branch find-threshold in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 24a54fa94afe329cb123a75ab0c5d870bd3ff090 Author: Robert Newson <[email protected]> AuthorDate: Wed Apr 22 15:25:20 2026 +0100 fixes _find when over threshold fixed a typo also closes https://github.com/apache/couchdb/issues/5977 --- src/chttpd/src/chttpd.erl | 2 +- src/mango/src/mango_cursor_view.erl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/chttpd/src/chttpd.erl b/src/chttpd/src/chttpd.erl index 57a3aeaea..485e012c2 100644 --- a/src/chttpd/src/chttpd.erl +++ b/src/chttpd/src/chttpd.erl @@ -1189,7 +1189,7 @@ error_info(timeout) -> error_info({service_unavailable, Reason}) -> {503, <<"service unavailable">>, Reason}; error_info({insufficient_storage, Reason}) -> - {507, <<"insufficent_storage">>, Reason}; + {507, <<"insufficient_storage">>, Reason}; error_info({timeout, _Reason}) -> error_info(timeout); error_info({'EXIT', {Error, _Stack}}) -> diff --git a/src/mango/src/mango_cursor_view.erl b/src/mango/src/mango_cursor_view.erl index b496961f6..38bdaf6f9 100644 --- a/src/mango/src/mango_cursor_view.erl +++ b/src/mango/src/mango_cursor_view.erl @@ -460,6 +460,8 @@ view_cb(complete, #mrargs{extra = Options} = Acc) -> % Finish view output ok = rexi:stream_last(complete), {ok, Acc}; +view_cb(ok, insufficient_storage) -> + rexi:reply({ok, insufficient_storage}); view_cb(ok, ddoc_updated) -> rexi:reply({ok, ddoc_updated}).
