diff options
author | Robert Newson <rnewson@apache.org> | 2018-12-14 18:35:50 +0000 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2018-12-14 18:35:50 +0000 |
commit | 1c18b792f8a3c8d4b62d5176a1ebe1c67d2bff41 (patch) | |
tree | fb394aaa5288c471b1627992fa75d772be54b99d /src | |
parent | b755e72594d3ec436e8fa6d7fec592942f3e3f5b (diff) | |
download | couchdb-1c18b792f8a3c8d4b62d5176a1ebe1c67d2bff41.tar.gz |
Fix function_clause caused by malformed accumulator
In a previous commit we added another item to the accumulator used by
load_docs. Unfortunately one clause was not modified so we send the
original 6-tuple, which then fails to match the function and crashes.
This affects searches of busy indexes, the user gets a function_clause
erorr instead of search results. It does not appear to prevent index
commits, though.
BugzID: 114420
Diffstat (limited to 'src')
-rw-r--r-- | src/dreyfus_index_updater.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dreyfus_index_updater.erl b/src/dreyfus_index_updater.erl index 0c3b3b7eb..e2fbe2b05 100644 --- a/src/dreyfus_index_updater.erl +++ b/src/dreyfus_index_updater.erl @@ -83,7 +83,7 @@ load_docs(FDI, {I, IndexPid, Db, Proc, Total, LastCommitTime, ExcludeIdRevs}=Acc case timer:now_diff(Now = now(), LastCommitTime) >= 60000000 of true -> ok = clouseau_rpc:commit(IndexPid, Seq), - {ok, {I+1, IndexPid, Db, Proc, Total, Now}}; + {ok, {I+1, IndexPid, Db, Proc, Total, Now, ExcludeIdRevs}}; false -> {ok, setelement(1, Acc, I+1)} end. |