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

[1/3] couch commit: updated refs/heads/windsor-merge to 481fa52

Repository: couchdb-couch
Updated Branches:
  refs/heads/windsor-merge 1c8411bb1 -> 481fa52e9


Silence warnings for dict type


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

Branch: refs/heads/windsor-merge
Commit: 5b306542707b31a0a5027a6fb5e8ac7ef4af7644
Parents: 1c8411b
Author: Paul J. Davis <pa...@gmail.com>
Authored: Mon Aug 11 12:29:19 2014 -0500
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Mon Aug 11 12:29:19 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/5b306542/src/couch_att.erl
----------------------------------------------------------------------
diff --git a/src/couch_att.erl b/src/couch_att.erl
index ff0eaeb..042635d 100644
--- a/src/couch_att.erl
+++ b/src/couch_att.erl
@@ -50,6 +50,7 @@
     downgrade/1
 ]).
 
+-compile(nowarn_deprecated_type).
 -export_type([att/0]).
 
 -include_lib("couch/include/couch_db.hrl").
@@ -247,7 +248,7 @@ merge_stubs(MemAtts, DiskAtts) ->
     merge_stubs(MemAtts, OnDisk, []).
 
 
--spec merge_stubs([att()], dict:dict(), [att()]) -> [att()].
+-spec merge_stubs([att()], dict(), [att()]) -> [att()].
 merge_stubs([Att | Rest], OnDisk, Merged) ->
     case fetch(data, Att) of
         stub ->


[3/3] couch commit: updated refs/heads/windsor-merge to 481fa52

Posted by da...@apache.org.
Squash to 1c8411bb1878c0


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

Branch: refs/heads/windsor-merge
Commit: 481fa52e98884de6844bc62f3b362f869a236ed9
Parents: eb1c04e
Author: Paul J. Davis <pa...@gmail.com>
Authored: Mon Aug 11 12:33:02 2014 -0500
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Mon Aug 11 12:33:02 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/481fa52e/src/couch_att.erl
----------------------------------------------------------------------
diff --git a/src/couch_att.erl b/src/couch_att.erl
index 6d8a71f..e174c48 100644
--- a/src/couch_att.erl
+++ b/src/couch_att.erl
@@ -598,7 +598,7 @@ foldl({follows, Parser, Ref}, Att, Fun, Acc) ->
         end
     end,
     try
-        foldl(DataFun, Fun, store(data, DataFun, Acc))
+        foldl(DataFun, store(data, DataFun, Att), Fun, Acc)
     after
         erlang:demonitor(ParserRef, [flush])
     end.


[2/3] couch commit: updated refs/heads/windsor-merge to 481fa52

Posted by da...@apache.org.
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/eb1c04e8
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/eb1c04e8
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/eb1c04e8

Branch: refs/heads/windsor-merge
Commit: eb1c04e889dfc47484bed91d2ea6f6dc4a8f35ae
Parents: 5b30654
Author: Paul J. Davis <pa...@gmail.com>
Authored: Mon Aug 11 12:29:56 2014 -0500
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Mon Aug 11 12:29:56 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/eb1c04e8/src/couch_att.erl
----------------------------------------------------------------------
diff --git a/src/couch_att.erl b/src/couch_att.erl
index 042635d..6d8a71f 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(_, []) ->