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/01 16:35:00 UTC
[39/49] fabric commit: updated refs/heads/windsor-merge to b1c0030
Avoid badarith error during cluster upgrade
BugzID: 26631
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/2e77350d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/2e77350d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/2e77350d
Branch: refs/heads/windsor-merge
Commit: 2e77350def9ba1ec33b814c06411b0c125de7d8c
Parents: dbcbfc1
Author: Adam Kocoloski <ad...@cloudant.com>
Authored: Mon Jan 6 12:02:18 2014 -0500
Committer: Robert Newson <rn...@apache.org>
Committed: Fri Aug 1 15:33:43 2014 +0100
----------------------------------------------------------------------
src/fabric_view_changes.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/2e77350d/src/fabric_view_changes.erl
----------------------------------------------------------------------
diff --git a/src/fabric_view_changes.erl b/src/fabric_view_changes.erl
index 5d0672e..c4eab22 100644
--- a/src/fabric_view_changes.erl
+++ b/src/fabric_view_changes.erl
@@ -223,7 +223,7 @@ handle_message({change, Props}, {Worker, _}, #collector{limit=0} = State) ->
O1 = case fabric_dict:lookup_element(Worker, O0) of
null ->
% Use Pending+1 because we're ignoring this row in the response
- Pending = couch_util:get_value(pending, Props),
+ Pending = couch_util:get_value(pending, Props, 0),
fabric_dict:store(Worker, Pending+1, O0);
_ ->
O0