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
diff --git a/src/couch/src/couch_db.erl b/src/couch/src/couch_db.erl
index 3c4f1ed..dd7e075 100644
--- a/src/couch/src/couch_db.erl
+++ b/src/couch/src/couch_db.erl
@@ -432,7 +432,7 @@
{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