curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject git commit: don't need to hoist value anymore
Date Mon, 03 Feb 2014 18:49:56 GMT
Updated Branches:
  refs/heads/CURATOR-72 c40afd96a -> 226590541


don't need to hoist value anymore


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

Branch: refs/heads/CURATOR-72
Commit: 226590541f07ce4a611f71d389a43762d118397d
Parents: c40afd9
Author: randgalt <randgalt@apache.org>
Authored: Mon Feb 3 13:49:45 2014 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Mon Feb 3 13:49:45 2014 -0500

----------------------------------------------------------------------
 .../org/apache/curator/framework/imps/CuratorFrameworkImpl.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/22659054/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
----------------------------------------------------------------------
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
index b480d9b..0f98495 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
+++ b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
@@ -623,8 +623,7 @@ public class CuratorFrameworkImpl implements CuratorFramework
             {
                 // if instanceIndex != newInstanceIndex, the ZooKeeper instance was reset/reallocated
                 // so the pending background sync is no longer valid
-                long newInstanceIndex = client.getInstanceIndex();
-                if ( (instanceIndex < 0) || (instanceIndex == newInstanceIndex) )
+                if ( (instanceIndex < 0) || (instanceIndex == client.getInstanceIndex())
)
                 {
                     connectionStateManager.addStateChange(ConnectionState.LOST);
                 }


Mime
View raw message