couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject chttpd commit: updated refs/heads/master to b4e1c22
Date Mon, 15 Sep 2014 23:20:50 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 6577ad195 -> b4e1c22b5


Send num_mp_writers to correct N


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

Branch: refs/heads/master
Commit: b4e1c22b5b1087474ca02d8e52e97d9f62aeb4a6
Parents: 6577ad1
Author: Robert Newson <rnewson@apache.org>
Authored: Tue Sep 16 00:20:36 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Tue Sep 16 00:20:36 2014 +0100

----------------------------------------------------------------------
 src/chttpd_db.erl | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/b4e1c22b/src/chttpd_db.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl
index 0ab3286..f65b5b0 100644
--- a/src/chttpd_db.erl
+++ b/src/chttpd_db.erl
@@ -673,6 +673,7 @@ db_doc_req(#httpd{method='PUT', user_ctx=Ctx}=Req, Db, DocId) ->
     RespHeaders = [{"Location", Loc}],
     case couch_util:to_list(couch_httpd:header_value(Req, "Content-Type")) of
     ("multipart/related;" ++ _) = ContentType ->
+        couch_doc:num_mp_writers(mem3:n(mem3:dbname(Db#db.name), DocId)),
         {ok, Doc0, WaitFun, Parser} = couch_doc:doc_from_multi_part_stream(ContentType,
                 fun() -> receive_request_data(Req) end),
         Doc = couch_doc_from_req(Req, DocId, Doc0),


Mime
View raw message