geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [56/57] [abbrv] incubator-geode git commit: fixing a problem with the new constructor in NetView
Date Mon, 25 Jan 2016 17:45:31 GMT
fixing a problem with the new constructor in NetView

The new constructor used by unit tests was not setting the viewId correctly,
causing a few tests to fail.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/a92e041d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/a92e041d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/a92e041d

Branch: refs/heads/feature/GEODE-819
Commit: a92e041d7e64774597c679296bf21390f9a6c908
Parents: df274cc
Author: Bruce Schuchardt <bschuchardt@pivotal.io>
Authored: Mon Jan 25 08:55:19 2016 -0800
Committer: Bruce Schuchardt <bschuchardt@pivotal.io>
Committed: Mon Jan 25 08:56:41 2016 -0800

----------------------------------------------------------------------
 .../gemfire/distributed/internal/membership/NetView.java         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/a92e041d/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/membership/NetView.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/membership/NetView.java
b/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/membership/NetView.java
index 5f68056..b0ddcc0 100644
--- a/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/membership/NetView.java
+++ b/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/membership/NetView.java
@@ -78,9 +78,9 @@ public class NetView implements DataSerializableFixedID {
   }
 
   public NetView(InternalDistributedMember creator, int viewId, List<InternalDistributedMember>
members) {
-    this.viewId = 0;
+    this.viewId = viewId;
     this.members = new ArrayList<InternalDistributedMember>(members);
-    hashedMembers = new HashSet<>(members);
+    hashedMembers = new HashSet<>(this.members);
     shutdownMembers = new HashSet<>();
     crashedMembers = Collections.emptySet();
     this.creator = creator;


Mime
View raw message