summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2008-05-25 22:10:40 +0000
committerDamien F. Katz <damien@apache.org>2008-05-25 22:10:40 +0000
commitceada3b57cf9fb8c14bf2e0dd770b53a85ce4a3d (patch)
tree9cd84283783fc99b59103781946fbbc8965b895e /src/couchdb
parent3368134b760178287f1101d403a1f0ed5caf5e23 (diff)
Fix for file attachments using too much space in compacted databases
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660049 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_stream.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couchdb/couch_stream.erl b/src/couchdb/couch_stream.erl
index 103ebacb..964dc150 100644
--- a/src/couchdb/couch_stream.erl
+++ b/src/couchdb/couch_stream.erl
@@ -80,6 +80,7 @@ read(Fd, Sp, Num) ->
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}.