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/26 11:46:16 UTC

[21/26] couch commit: updated refs/heads/windsor-merge to 14dc5e9

Match the old ordering for attachments

This affects when we're updating attachments and need to merge updated
attachments onto a non-deleted document. The old code useda  lists:map/2
where as the new code is a tail recursive approach. This just reverses
the accumulator to match the same order as we had previously.


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

Branch: refs/heads/windsor-merge
Commit: b72ae1446ef1f40aaef925d50f358cca90834dc9
Parents: 14c384f
Author: Paul J. Davis <pa...@gmail.com>
Authored: Mon Aug 11 12:29:56 2014 -0500
Committer: Robert Newson <rn...@apache.org>
Committed: Tue Aug 26 10:44:12 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/b72ae144/src/couch_att.erl
----------------------------------------------------------------------
diff --git a/src/couch_att.erl b/src/couch_att.erl
index 347a8fd..e174c48 100644
--- a/src/couch_att.erl
+++ b/src/couch_att.erl
@@ -273,7 +273,7 @@ merge_stubs([Att | Rest], OnDisk, Merged) ->
             merge_stubs(Rest, OnDisk, [Att | Merged])
     end;
 merge_stubs([], _, Merged) ->
-    {ok, Merged}.
+    {ok, lists:reverse(Merged)}.
 
 
 disk_info(_, []) ->