summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_rep_att.erl
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2010-03-03 19:38:16 +0000
committerJan Lehnardt <jan@apache.org>2010-03-03 19:38:16 +0000
commit64a26da1b21c9757ba2aba31ba5bd2e354fc83e1 (patch)
treedfe442837b450496d00df83c7c51eace59802da0 /src/couchdb/couch_rep_att.erl
parente13a88b46cfad2603c636cf5781469f25e9d365f (diff)
Fix pull replication. Patch by Randall Leeds.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@918657 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_rep_att.erl')
-rw-r--r--src/couchdb/couch_rep_att.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/couchdb/couch_rep_att.erl b/src/couchdb/couch_rep_att.erl
index ee4f0184..5f1b57e9 100644
--- a/src/couchdb/couch_rep_att.erl
+++ b/src/couchdb/couch_rep_att.erl
@@ -25,11 +25,7 @@ convert_stub(#att{data=stub, name=Name} = Attachment,
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() ->