You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/01 16:29:58 UTC

[18/23] fabric commit: updated refs/heads/windsor-merge to 4ec3f11

Move attachment code into couch_att

This is an attempt to isolate the attachment record and
some related code. This will allow seamless upgrades
over time.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/50ef1a05
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/50ef1a05
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/50ef1a05

Branch: refs/heads/windsor-merge
Commit: 50ef1a05f222ad29148cec7b282dfdec21b3dd5c
Parents: a3a2ec3
Author: Brian Mitchell <br...@p2p.io>
Authored: Wed Dec 11 23:11:48 2013 -0500
Committer: Robert Newson <rn...@apache.org>
Committed: Fri Aug 1 15:20:18 2014 +0100

----------------------------------------------------------------------
 src/fabric_rpc.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/50ef1a05/src/fabric_rpc.erl
----------------------------------------------------------------------
diff --git a/src/fabric_rpc.erl b/src/fabric_rpc.erl
index 9b6c217..b398969 100644
--- a/src/fabric_rpc.erl
+++ b/src/fabric_rpc.erl
@@ -373,7 +373,7 @@ make_att_readers([]) ->
 make_att_readers([#doc{atts=Atts0} = Doc | Rest]) ->
     % % go through the attachments looking for 'follows' in the data,
     % % replace with function that reads the data from MIME stream.
-    Atts = [Att#att{data=make_att_reader(D)} || #att{data=D} = Att <- Atts0],
+    Atts = [couch_att:transform(data, fun make_att_reader/1, Att) || Att <- Atts0],
     [Doc#doc{atts = Atts} | make_att_readers(Rest)].
 
 make_att_reader({follows, Parser, Ref}) ->