diff options
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_stream.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_stream.erl b/src/couchdb/couch_stream.erl index bf9fd3c2..1f12e632 100644 --- a/src/couchdb/couch_stream.erl +++ b/src/couchdb/couch_stream.erl @@ -123,10 +123,10 @@ handle_call(close, _From, Stream) -> case Buffer of [] -> - Result = {Written, WrittenLen}; + Result = {lists:reverse(Written), WrittenLen}; _ -> {ok, Pos} = couch_file:append_binary(Fd, lists:reverse(Buffer)), - Result = {[Pos|Written], WrittenLen + BufferLen} + Result = {lists:reverse(Written, [Pos]), WrittenLen + BufferLen} end, {stop, normal, Result, Stream}. |