Fix variable shadowing
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/80627532 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/80627532 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/80627532 Branch: refs/heads/import Commit: 806275329cef5f68fc630dc966e3b18f3933b480 Parents: 5d3753d Author: Adam Kocoloski <[email protected]> Authored: Fri Oct 21 15:39:29 2011 -0400 Committer: Paul J. Davis <[email protected]> Committed: Fri Jan 17 16:44:29 2014 -0800 ---------------------------------------------------------------------- src/couch_doc.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/80627532/src/couch_doc.erl ---------------------------------------------------------------------- diff --git a/src/couch_doc.erl b/src/couch_doc.erl index 07e67e8..bcf79d2 100644 --- a/src/couch_doc.erl +++ b/src/couch_doc.erl @@ -338,7 +338,7 @@ max_seq(Tree, UpdateSeq) -> end, couch_key_tree:fold(FoldFun, UpdateSeq, Tree). -to_doc_info_path(#full_doc_info{id=Id,rev_tree=Tree,update_seq=Seq}) -> +to_doc_info_path(#full_doc_info{id=Id,rev_tree=Tree,update_seq=FDISeq}) -> RevInfosAndPath = [ {#rev_info{ deleted = element(1, LeafVal), @@ -356,7 +356,7 @@ to_doc_info_path(#full_doc_info{id=Id,rev_tree=Tree,update_seq=Seq}) -> end, RevInfosAndPath), [{_RevInfo, WinPath}|_] = SortedRevInfosAndPath, RevInfos = [RevInfo || {RevInfo, _Path} <- SortedRevInfosAndPath], - {#doc_info{id=Id, high_seq=max_seq(Tree, Seq), revs=RevInfos}, WinPath}. + {#doc_info{id=Id, high_seq=max_seq(Tree, FDISeq), revs=RevInfos}, WinPath}.
