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 c1bf94f7559334dba290abecc7755701e53290ca
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
---
 mise.toml                           | 4 ++--
 src/chttpd/src/chttpd.erl           | 2 +-
 src/mango/src/mango_cursor_view.erl | 2 ++
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/mise.toml b/mise.toml
index 677d203bb..1942eadf6 100644
--- a/mise.toml
+++ b/mise.toml
@@ -1,6 +1,6 @@
 [tools]
-elixir = "1.19.5-otp-28"
-erlang = "28"
+elixir = "1.19.5-otp-26"
+erlang = '26'
 java = '21'
 nodejs = '24'
 python = '3'
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}).
 

Reply via email to