diff options
author | Damien F. Katz <damien@apache.org> | 2008-04-07 19:51:17 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2008-04-07 19:51:17 +0000 |
commit | 9c27e4d7db0e2e6a1b458f8545f584fcfaea4ef2 (patch) | |
tree | 94cf96af696ab3042d2afd1f4e4e7d83a98b1568 /src/couchdb/couch_stream.erl | |
parent | 4708e70c612a797b5d15774149ed589996d0c2e3 (diff) |
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
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 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}. |