Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 52095 invoked from network); 3 Mar 2010 19:41:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Mar 2010 19:41:02 -0000 Received: (qmail 17622 invoked by uid 500); 3 Mar 2010 19:40:54 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 17595 invoked by uid 500); 3 Mar 2010 19:40:54 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 17588 invoked by uid 99); 3 Mar 2010 19:40:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 19:40:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 19:40:54 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DACCB238898B; Wed, 3 Mar 2010 19:40:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r918658 - /couchdb/branches/0.11.x/src/couchdb/couch_rep_att.erl Date: Wed, 03 Mar 2010 19:40:33 -0000 To: commits@couchdb.apache.org From: jan@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100303194033.DACCB238898B@eris.apache.org> Author: jan Date: Wed Mar 3 19:40:33 2010 New Revision: 918658 URL: http://svn.apache.org/viewvc?rev=918658&view=rev Log: Fix pull replication. Patch by Randall Leeds. Modified: couchdb/branches/0.11.x/src/couchdb/couch_rep_att.erl Modified: couchdb/branches/0.11.x/src/couchdb/couch_rep_att.erl URL: http://svn.apache.org/viewvc/couchdb/branches/0.11.x/src/couchdb/couch_rep_att.erl?rev=918658&r1=918657&r2=918658&view=diff ============================================================================== --- couchdb/branches/0.11.x/src/couchdb/couch_rep_att.erl (original) +++ couchdb/branches/0.11.x/src/couchdb/couch_rep_att.erl Wed Mar 3 19:40:33 2010 @@ -25,11 +25,7 @@ qs = [{rev, couch_doc:rev_to_str({Pos,RevId})}] }, Ref = make_ref(), - RcvFun = fun() -> - Bin = attachment_receiver(Ref, Request), - cleanup(), - Bin - end, + RcvFun = fun() -> attachment_receiver(Ref, Request) end, Attachment#att{data=RcvFun}. cleanup() ->