couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [18/25] couch commit: updated refs/heads/master to 92598cd
Date Thu, 15 Oct 2015 16:35:52 GMT
Add deprecation warning for couch_doc:num_mp_writers/1


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

Branch: refs/heads/master
Commit: 8f4311d2637a20aff9ef1b6b62d39fd234f49594
Parents: 042c878
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Wed Dec 3 10:02:27 2014 -0800
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Wed May 6 06:55:59 2015 -0700

----------------------------------------------------------------------
 src/couch_doc.erl | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/8f4311d2/src/couch_doc.erl
----------------------------------------------------------------------
diff --git a/src/couch_doc.erl b/src/couch_doc.erl
index 0247532..112053f 100644
--- a/src/couch_doc.erl
+++ b/src/couch_doc.erl
@@ -24,6 +24,8 @@
 -export([with_ejson_body/1]).
 -export([is_deleted/1]).
 
+%% deprecated
+-export([num_mp_writers/1]).
 
 -include_lib("couch/include/couch_db.hrl").
 
@@ -430,3 +432,8 @@ with_ejson_body(#doc{body = Body} = Doc) when is_binary(Body) ->
     Doc#doc{body = couch_compress:decompress(Body)};
 with_ejson_body(#doc{body = {_}} = Doc) ->
     Doc.
+
+%% deprecated
+num_mp_writers(N) ->
+    couch_log:warning("couch_doc:num_mp_writers/1 is deprecated use couch_httpd_multipart:num_mp_writers/1",
[]),
+    couch_httpd_multipart:num_mp_writers(N).


Mime
View raw message