couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [16/50] fabric commit: updated refs/heads/windsor-merge-121 to 79e6e2f
Date Fri, 01 Aug 2014 09:12:04 GMT
Handle bad_request message from worker

fabric_doc_update handles bad_request messages that can be sent
by its workers if they fail to parse a multipart/related document.

BugzID: 22593


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/674c211a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/674c211a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/674c211a

Branch: refs/heads/windsor-merge-121
Commit: 674c211a223f763c156b7948183299a0a829d280
Parents: 3804a0a
Author: Mike Wallace <mikewallace1979@googlemail.com>
Authored: Wed Aug 21 13:51:58 2013 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Thu Jul 31 11:12:16 2014 +0100

----------------------------------------------------------------------
 src/fabric_doc_update.erl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/674c211a/src/fabric_doc_update.erl
----------------------------------------------------------------------
diff --git a/src/fabric_doc_update.erl b/src/fabric_doc_update.erl
index 8ec12ac..ddae65d 100644
--- a/src/fabric_doc_update.erl
+++ b/src/fabric_doc_update.erl
@@ -87,7 +87,9 @@ handle_message({missing_stub, Stub}, _, _) ->
 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).
+    handle_message({ok, [X || _D <- Docs]}, Worker, Acc0);
+handle_message({bad_request, Msg}, _, _) ->
+    throw({bad_request, Msg}).
 
 force_reply(Doc, [], {_, W, Acc}) ->
     {error, W, [{Doc, {error, internal_server_error}} | Acc]};


Mime
View raw message