couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COUCHDB-366) Error Uploading Attachment
Date Fri, 29 May 2009 01:30:45 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714256#action_12714256
] 

Paul Joseph Davis commented on COUCHDB-366:
-------------------------------------------

Patch by Damien appears to fix the issue.

Index: src/couchdb/couch_stream.erl
===================================================================
--- src/couchdb/couch_stream.erl	(revision 778521)
+++ src/couchdb/couch_stream.erl	(working copy)
@@ -102,7 +102,7 @@
         buffer_list = Buffer,
         max_buffer = Max} = Stream,
     if BinSize + BufferLen > Max ->
-        {ok, Pos} = couch_file:append_binary(Fd, lists:reverse(Buffer, Bin)),
+        {ok, Pos} = couch_file:append_binary(Fd, lists:reverse(Buffer, [Bin])),
         {reply, ok, Stream#stream{
                         written_len=WrittenLen + BufferLen + BinSize,
                         written_pointers=[Pos|Written],

> Error Uploading Attachment
> --------------------------
>
>                 Key: COUCHDB-366
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-366
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 0.10
>         Environment: Ubuntu 8.04, CouchDB Trunk rev 779803
>            Reporter: Ben Browning
>         Attachments: attachment_traceback.txt, bespin.zip
>
>
> 20:21 <davisp> damienkatz: uploading a large attachment ends up
>                throwing a function_clause error on split_iolist and
>                the parameter types are binary(), int(), [binary()]
> Traceback attached

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message