couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [17/23] fabric commit: updated refs/heads/windsor-merge to 4ec3f11
Date Fri, 01 Aug 2014 14:29:57 GMT
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/a3a2ec33
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/a3a2ec33
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/a3a2ec33

Branch: refs/heads/windsor-merge
Commit: a3a2ec3344c18be2928d82f679909a88abbb73c1
Parents: 4b00274
Author: Adam Kocoloski <adam@cloudant.com>
Authored: Mon Jan 6 12:02:18 2014 -0500
Committer: Robert Newson <rnewson@apache.org>
Committed: Fri Aug 1 15:19:55 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/a3a2ec33/src/fabric_view_changes.erl
----------------------------------------------------------------------
diff --git a/src/fabric_view_changes.erl b/src/fabric_view_changes.erl
index 0447bd6..44aa9f1 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


Mime
View raw message