diff options
author | Robert Newson <rnewson@apache.org> | 2018-12-14 19:06:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-14 19:06:56 +0000 |
commit | 1bdca62752f03db145d14252d9c233ffcbce779c (patch) | |
tree | fb394aaa5288c471b1627992fa75d772be54b99d | |
parent | b755e72594d3ec436e8fa6d7fec592942f3e3f5b (diff) | |
parent | 1c18b792f8a3c8d4b62d5176a1ebe1c67d2bff41 (diff) | |
download | couchdb-1bdca62752f03db145d14252d9c233ffcbce779c.tar.gz |
Merge pull request #39 from cloudant-labs/fix-function-clause-load-docs
Fix function_clause caused by malformed accumulator
-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. |