couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [31/37] couch-replicator commit: updated refs/heads/master to aafb5f9
Date Thu, 28 Aug 2014 12:16:02 GMT
Fix badmatch with variable name duplication

Silly bug is silly.


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/1b323802
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/1b323802
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/1b323802

Branch: refs/heads/master
Commit: 1b3238023d3edfe9283f7c140b71d83b9f746768
Parents: 9b2dd48
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Mon Aug 11 15:07:02 2014 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Mon Aug 11 15:07:02 2014 -0500

----------------------------------------------------------------------
 src/couch_replicator_api_wrap.erl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/1b323802/src/couch_replicator_api_wrap.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_api_wrap.erl b/src/couch_replicator_api_wrap.erl
index fbbff19..ae4f16e 100644
--- a/src/couch_replicator_api_wrap.erl
+++ b/src/couch_replicator_api_wrap.erl
@@ -159,9 +159,9 @@ get_pending_count(#httpdb{} = Db, Seq) ->
         {ok, couch_util:get_value(<<"pending">>, Props, null)}
     end);
 get_pending_count(#db{name=DbName}=Db, Seq) when is_number(Seq) ->
-    {ok, Db} = couch_db:open(DbName, [{user_ctx, Db#db.user_ctx}]),
-    Pending = couch_db:count_changes_since(Db, Seq),
-    couch_db:close(Db),
+    {ok, CountDb} = couch_db:open(DbName, [{user_ctx, Db#db.user_ctx}]),
+    Pending = couch_db:count_changes_since(CountDb, Seq),
+    couch_db:close(CountDb),
     {ok, Pending}.
 
 


Mime
View raw message