You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2022/08/09 22:05:11 UTC

[couchdb] branch fix-purge-default-gen-server-timeout created (now 45012bab9)

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

vatamane pushed a change to branch fix-purge-default-gen-server-timeout
in repository https://gitbox.apache.org/repos/asf/couchdb.git


      at 45012bab9 Fix purge request timeouts

This branch includes the following new commits:

     new 45012bab9 Fix purge request timeouts

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 01/01: Fix purge request timeouts

Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch fix-purge-default-gen-server-timeout
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 45012bab917afba592cb2fb2c1a1bb22f4a134bf
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Tue Aug 9 18:00:42 2022 -0400

    Fix purge request timeouts
    
    Don't rely on the default gen_server 5 second timeout.
    
    Use `infinity` as that's also effectively used for doc updates.
    
    Fixes https://github.com/apache/couchdb/issues/4142
---
 src/couch/src/couch_db.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch/src/couch_db.erl b/src/couch/src/couch_db.erl
index 3c4f1edec..dd7e07517 100644
--- a/src/couch/src/couch_db.erl
+++ b/src/couch/src/couch_db.erl
@@ -432,7 +432,7 @@ purge_docs(#db{main_pid = Pid} = Db, UUIDsIdsRevs, Options) ->
             {ok, []};
         [_ | _] ->
             increment_stat(Db, [couchdb, database_purges]),
-            gen_server:call(Pid, {purge_docs, UUIDsIdsRevs2, Options})
+            gen_server:call(Pid, {purge_docs, UUIDsIdsRevs2, Options}, infinity)
     end.
 
 -spec get_purge_infos(#db{}, [UUId]) -> [PurgeInfo] when