You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2014/08/28 19:30:21 UTC

[21/50] [abbrv] couch-replicator commit: updated refs/heads/1963-eunit-bigcouch to 3cf0b13

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-couch-replicator/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/commit/603e4a87
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/603e4a87
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/603e4a87

Branch: refs/heads/1963-eunit-bigcouch
Commit: 603e4a87cce891f558527c676ef8895556b11b96
Parents: b80c7c0
Author: Brian Mitchell <br...@p2p.io>
Authored: Wed Dec 11 23:10:56 2013 -0500
Committer: Robert Newson <rn...@apache.org>
Committed: Tue Jul 29 15:23:53 2014 +0100

----------------------------------------------------------------------
 src/couch_replicator_worker.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/603e4a87/src/couch_replicator_worker.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_worker.erl b/src/couch_replicator_worker.erl
index 5c8601d..bb31d5d 100644
--- a/src/couch_replicator_worker.erl
+++ b/src/couch_replicator_worker.erl
@@ -434,7 +434,8 @@ batch_doc(#doc{atts = []}) ->
 batch_doc(#doc{atts = Atts}) ->
     (length(Atts) =< ?MAX_BULK_ATTS_PER_DOC) andalso
         lists:all(
-            fun(#att{disk_len = L, data = Data}) ->
+            fun(Att) ->
+                [L, Data] = couch_att:fetch([disk_len, data], Att),
                 (L =< ?MAX_BULK_ATT_SIZE) andalso (Data =/= stub)
             end, Atts).