couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r660049 - /incubator/couchdb/trunk/src/couchdb/couch_stream.erl
Date Sun, 25 May 2008 22:10:41 GMT
Author: damien
Date: Sun May 25 15:10:40 2008
New Revision: 660049

URL: http://svn.apache.org/viewvc?rev=660049&view=rev
Log:
Fix for file attachments using too much space in compacted databases

Modified:
    incubator/couchdb/trunk/src/couchdb/couch_stream.erl

Modified: incubator/couchdb/trunk/src/couchdb/couch_stream.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/src/couchdb/couch_stream.erl?rev=660049&r1=660048&r2=660049&view=diff
==============================================================================
--- incubator/couchdb/trunk/src/couchdb/couch_stream.erl (original)
+++ incubator/couchdb/trunk/src/couchdb/couch_stream.erl Sun May 25 15:10:40 2008
@@ -80,6 +80,7 @@
 
 copy_to_new_stream(Src, Sp, Len, DestFd) ->
     {ok, Dest} = open(DestFd),
+    ok = set_min_buffer(Dest, 0),
     {ok, NewSp} = copy(Src, Sp, Len, Dest),
     close(Dest),
     {ok, NewSp}.



Mime
View raw message