You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ra...@apache.org on 2014/02/03 19:49:56 UTC
git commit: don't need to hoist value anymore
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 <ra...@apache.org>
Authored: Mon Feb 3 13:49:45 2014 -0500
Committer: randgalt <ra...@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);
}