diff options
author | Damien F. Katz <damien@apache.org> | 2008-04-01 20:32:15 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2008-04-01 20:32:15 +0000 |
commit | 042de2f5aeea9fb5be6768df934d61ba26985d5c (patch) | |
tree | 9471eb95045593332cf0df9ce5abefb190921781 /src/couchdb/couch_stream.erl | |
parent | 504c93c4534f07affc2c933bd4d5d7f6075ea013 (diff) |
Fix for runaway process in the view code and the so far untested storage compaction code.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@643556 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_stream.erl')
-rw-r--r-- | src/couchdb/couch_stream.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_stream.erl b/src/couchdb/couch_stream.erl index d5157b4d..ae1b4f2c 100644 --- a/src/couchdb/couch_stream.erl +++ b/src/couchdb/couch_stream.erl @@ -83,7 +83,7 @@ copy(#stream{pid = _Pid, fd = Fd}, Sp, Num, DestStream) -> copy(Fd, Sp, Num, DestStream) -> {ok, NewSp, _Sp2} = stream_data(Fd, Sp, Num, ?HUGE_CHUNK, fun(Bin, AccPointer) -> - {ok, NewPointer} = write(Bin, DestStream), + {ok, NewPointer} = write(DestStream, Bin), if AccPointer == null -> NewPointer; true -> AccPointer end end, null), |