couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject couch commit: updated refs/heads/master to 09a2066
Date Tue, 30 Sep 2014 23:01:12 GMT
Repository: couchdb-couch
Updated Branches:
  refs/heads/master d2a5c034b -> 09a206621


Allow iolists in write_streamed_attachment


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

Branch: refs/heads/master
Commit: 09a20662157e92960286f94890fdfd1330bc7fc2
Parents: d2a5c03
Author: Robert Newson <rnewson@apache.org>
Authored: Mon Sep 22 14:18:22 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Tue Sep 30 23:50:04 2014 +0100

----------------------------------------------------------------------
 src/couch_att.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/09a20662/src/couch_att.erl
----------------------------------------------------------------------
diff --git a/src/couch_att.erl b/src/couch_att.erl
index 07ee4da..bab835e 100644
--- a/src/couch_att.erl
+++ b/src/couch_att.erl
@@ -557,7 +557,7 @@ write_streamed_attachment(Stream, F, LenLeft) when LenLeft > 0 ->
             throw({bad_request, <<"attachment shorter than expected">>})
     end,
     ok = couch_stream:write(Stream, Bin),
-    write_streamed_attachment(Stream, F, LenLeft - size(Bin)).
+    write_streamed_attachment(Stream, F, LenLeft - iolist_size(Bin)).
 
 read_next_chunk(F, _) when is_function(F, 0) ->
     F();


Mime
View raw message