diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-06-17 11:48:06 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-06-17 11:48:06 -0400 |
commit | e6fe7126c88893dd39cec32481b05f7c38e97475 (patch) | |
tree | 6a34b3f29d2be15ab947d9f9e36252b2f614687a | |
parent | 7d91ca78fb286cf216b91229b196c21dd5e192af (diff) |
correct handling of PUTs to missing DB
-rw-r--r-- | src/fabric_doc_update.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fabric_doc_update.erl b/src/fabric_doc_update.erl index 555b1897..4d8ca3a6 100644 --- a/src/fabric_doc_update.erl +++ b/src/fabric_doc_update.erl @@ -43,7 +43,11 @@ handle_message({ok, Replies}, Worker, Acc0) -> {_, N} when N < DocCount -> % no point in trying to finalize anything yet {ok, {WaitingCount - 1, DocCount, W, GroupedDocs, DocReplyDict}} - end. + end; +handle_message({not_found, no_db_file} = X, Worker, Acc0) -> + {_, _, _, GroupedDocs, _} = Acc0, + Docs = couch_util:get_value(Worker, GroupedDocs), + handle_message({ok, [X || _D <- Docs]}, Worker, Acc0). force_reply(Doc, Replies, {W, Acc}) -> % TODO make a real decision here |