From 042de2f5aeea9fb5be6768df934d61ba26985d5c Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Tue, 1 Apr 2008 20:32:15 +0000 Subject: 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 --- src/couchdb/couch_stream.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb/couch_stream.erl') 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), -- cgit v1.2.3