couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [21/25] couch commit: updated refs/heads/master to 92598cd
Date Thu, 15 Oct 2015 16:35:55 GMT
Change order of the functions to improve readability


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

Branch: refs/heads/master
Commit: 3337a30b6cbe58433813aa6af7c735107f488388
Parents: 8f4311d
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Wed Dec 3 10:04:46 2014 -0800
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Wed May 6 06:55:59 2015 -0700

----------------------------------------------------------------------
 src/couch_doc.erl | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/3337a30b/src/couch_doc.erl
----------------------------------------------------------------------
diff --git a/src/couch_doc.erl b/src/couch_doc.erl
index 112053f..4df277c 100644
--- a/src/couch_doc.erl
+++ b/src/couch_doc.erl
@@ -17,7 +17,6 @@
 -export([validate_docid/1, get_validate_doc_fun/1]).
 -export([doc_from_multi_part_stream/2, doc_from_multi_part_stream/3]).
 -export([doc_to_multi_part_stream/5, len_doc_to_multi_part_stream/4]).
--export([abort_multi_part_stream/1]).
 -export([restart_open_doc_revs/3]).
 -export([to_path/1]).
 
@@ -25,6 +24,7 @@
 -export([is_deleted/1]).
 
 %% deprecated
+-export([abort_multi_part_stream/1]).
 -export([num_mp_writers/1]).
 
 -include_lib("couch/include/couch_db.hrl").
@@ -402,10 +402,6 @@ doc_from_multi_part_stream(ContentType, DataFun, Ref) ->
     ok -> ok
     end.
 
-abort_multi_part_stream(Parser) ->
-    couch_log:warning("couch_doc:abort_multi_part_stream/1 is deprecated use couch_httpd_multipart:abort_multipart_stream/1",
[]),
-    couch_httpd_multipart:abort_multipart_stream(Parser).
-
 restart_open_doc_revs(Parser, Ref, NewRef) ->
     unlink(Parser),
     exit(Parser, kill),
@@ -434,6 +430,10 @@ with_ejson_body(#doc{body = {_}} = Doc) ->
     Doc.
 
 %% deprecated
+abort_multi_part_stream(Parser) ->
+    couch_log:warning("couch_doc:abort_multi_part_stream/1 is deprecated use couch_httpd_multipart:abort_multipart_stream/1",
[]),
+    couch_httpd_multipart:abort_multipart_stream(Parser).
+
 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