From 9c27e4d7db0e2e6a1b458f8545f584fcfaea4ef2 Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Mon, 7 Apr 2008 19:51:17 +0000 Subject: Compaction. Works, but still needs queueing and better handling for long reads/writes overlapping the compaction switchover. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@645661 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 8d5260f1..ca43562a 100644 --- a/src/couchdb/couch_stream.erl +++ b/src/couchdb/couch_stream.erl @@ -79,7 +79,7 @@ read(Fd, Sp, Num) -> {ok, Bin, Sp2}. copy_to_new_stream(Src, Sp, Len, DestFd) -> - Dest = open(DestFd), + {ok, Dest} = open(DestFd), {ok, NewSp} = copy(Src, Sp, Len, Dest), close(Dest), {ok, NewSp}. -- cgit v1.2.3