summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_stream.erl
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2009-04-09 21:37:23 +0000
committerDamien F. Katz <damien@apache.org>2009-04-09 21:37:23 +0000
commitcdf43ab5a1d5ea21e42302c848fe4f07150e6947 (patch)
tree431279b218c6bb13454dcfc73286b45c1f9a690d /src/couchdb/couch_stream.erl
parentcf3eac0fc97cc4671c1ba86e1924b0a46d096333 (diff)
Fix for attachment sparseness bug COUCHDB-220 by giving each attachment it's own stream and calling set_min_buffer instead of ensure_buffer. Also fixed spurious couch_file crash messages by putting the statistics decrement code into a seperate monitoring process.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@763816 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_stream.erl')
-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 d6f72696..addf9acf 100644
--- a/src/couchdb/couch_stream.erl
+++ b/src/couchdb/couch_stream.erl
@@ -38,6 +38,7 @@
current_pos = 0,
bytes_remaining = 0,
next_alloc = 0,
+ first_alloc = 0,
min_alloc = 16#00010000
}).