summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2008-05-01 12:07:52 +0000
committerDamien F. Katz <damien@apache.org>2008-05-01 12:07:52 +0000
commitfda591cf7d4db91222d1db988f570c6039182729 (patch)
tree4afa8b4b9bfd173e44e725120975d709b1ea3f12 /src/couchdb
parentd10b27ac0e6da94ae2766ac6d2701cbc0b6bef5f (diff)
fix for compaction problem with attachments, and enhancements to JS shell, to make debugging tests easier.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@652489 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_stream.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_stream.erl b/src/couchdb/couch_stream.erl
index ca43562a..103ebacb 100644
--- a/src/couchdb/couch_stream.erl
+++ b/src/couchdb/couch_stream.erl
@@ -90,7 +90,7 @@ copy(Fd, Sp, Len, DestStream) ->
{ok, NewSp, _Sp2} = stream_data(Fd, Sp, Len, ?HUGE_CHUNK,
fun(Bin, AccPointer) ->
{ok, NewPointer} = write(DestStream, Bin),
- if AccPointer == null -> NewPointer; true -> AccPointer end
+ {ok, if AccPointer == null -> NewPointer; true -> AccPointer end}
end,
null),
{ok, NewSp}.