You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2019/08/27 20:42:46 UTC

[couchdb] 01/01: Handle badmatch timeout in all_docs query

This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch timeout-all-docs
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 395b8228f1e537a5c61eb0c19f4420660de9af9e
Author: Joan Touzet <jo...@atypical.net>
AuthorDate: Tue Aug 27 16:42:25 2019 -0400

    Handle badmatch timeout in all_docs query
---
 src/fabric/src/fabric_view_all_docs.erl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/fabric/src/fabric_view_all_docs.erl b/src/fabric/src/fabric_view_all_docs.erl
index 1d87e3d..a0fcd14 100644
--- a/src/fabric/src/fabric_view_all_docs.erl
+++ b/src/fabric/src/fabric_view_all_docs.erl
@@ -109,7 +109,9 @@ go(DbName, Options, QueryArgs, Callback, Acc0) ->
             ),
             Callback(complete, Acc2);
         {'DOWN', Ref, _, _, Error} ->
-            Callback({error, Error}, Acc0)
+            Callback({error, Error}, Acc0);
+        timeout ->
+            Callback(timeout, Acc0)
     after Timeout ->
         Callback(timeout, Acc0)
     end.