diff options
| author | Adam Kocoloski <adam@cloudant.com> | 2010-08-09 01:11:00 -0400 |
|---|---|---|
| committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-09 01:11:00 -0400 |
| commit | 38228cdaeefd6ad2f9ec2452e05794caa850cf84 (patch) | |
| tree | 6b8272c8227e2594e95d1650a53969947b40befb | |
| parent | 575d736f197a297c841bd45f930e1a424fcd1ce3 (diff) | |
fix timeout when calling update_docs with empty list
| -rw-r--r-- | src/fabric_doc_update.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fabric_doc_update.erl b/src/fabric_doc_update.erl index 5c4cb132..f0fcf112 100644 --- a/src/fabric_doc_update.erl +++ b/src/fabric_doc_update.erl @@ -6,6 +6,8 @@ -include_lib("mem3/include/mem3.hrl"). -include_lib("couch/include/couch_db.hrl"). +go(_, [], _) -> + {ok, []}; go(DbName, AllDocs, Opts) -> validate_atomic_update(DbName, AllDocs, lists:member(all_or_nothing, Opts)), Options = lists:delete(all_or_nothing, Opts), |
