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 22:07:14 UTC
couch-replicator commit: updated refs/heads/windsor-merge to 1b32380
Repository: couchdb-couch-replicator
Updated Branches:
refs/heads/windsor-merge 9b2dd4823 -> 1b3238023
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/windsor-merge
Commit: 1b3238023d3edfe9283f7c140b71d83b9f746768
Parents: 9b2dd48
Author: Paul J. Davis <pa...@gmail.com>
Authored: Mon Aug 11 15:07:02 2014 -0500
Committer: Paul J. Davis <pa...@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}.