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:12 UTC
[couchdb] 01/01: Fix purge request timeouts
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