You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wi...@apache.org on 2019/12/10 12:45:12 UTC
[couchdb] branch 2530-all-dbs-timeout created (now 63c9da6)
This is an automated email from the ASF dual-hosted git repository.
willholley pushed a change to branch 2530-all-dbs-timeout
in repository https://gitbox.apache.org/repos/asf/couchdb.git.
at 63c9da6 Fix timeout case clause in fabric_db_info
This branch includes the following new commits:
new 63c9da6 Fix timeout case clause in fabric_db_info
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 timeout case clause in fabric_db_info
Posted by wi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
willholley pushed a commit to branch 2530-all-dbs-timeout
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 63c9da6b617ae8b68ba2e5530ee11019dccc2d56
Author: Will Holley <wi...@gmail.com>
AuthorDate: Tue Dec 10 12:40:41 2019 +0000
Fix timeout case clause in fabric_db_info
Unlike most other fabric_db_* message handlers, the accumulator
for fabric_db_info has 3 terms. When a rexi timeout occurs, it
returns `{timeout, Accumulator}`; the case clause handling this
needs to expect 3 terms in the Accumulator instead of 2.
Fixes #2350
---
src/fabric/src/fabric_db_info.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/fabric/src/fabric_db_info.erl b/src/fabric/src/fabric_db_info.erl
index ed14e3e..40da678 100644
--- a/src/fabric/src/fabric_db_info.erl
+++ b/src/fabric/src/fabric_db_info.erl
@@ -30,7 +30,7 @@ go(DbName) ->
{ok, Acc} ->
{ok, Acc};
- {timeout, {WorkersDict, _}} ->
+ {timeout, {WorkersDict, _, _}} ->
DefunctWorkers = fabric_util:remove_done_workers(
WorkersDict,
nil