Updated Branches:
  refs/heads/CURATOR-72 5238d5f08 -> 777a5f13c

CURATOR-81
Only STATIC instances should be cleaned


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

Branch: refs/heads/CURATOR-72
Commit: 136f3be9f41333bb9bc19c29917e09e89de7e8a1
Parents: 262d57e
Author: randgalt <[email protected]>
Authored: Tue Jan 7 14:43:24 2014 -0500
Committer: randgalt <[email protected]>
Committed: Tue Jan 7 14:43:24 2014 -0500

----------------------------------------------------------------------
 .../apache/curator/x/discovery/server/rest/InstanceCleanup.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/136f3be9/curator-x-discovery-server/src/main/java/org/apache/curator/x/discovery/server/rest/InstanceCleanup.java
----------------------------------------------------------------------
diff --git 
a/curator-x-discovery-server/src/main/java/org/apache/curator/x/discovery/server/rest/InstanceCleanup.java
 
b/curator-x-discovery-server/src/main/java/org/apache/curator/x/discovery/server/rest/InstanceCleanup.java
index c3dc3c2..a4de7a6 100644
--- 
a/curator-x-discovery-server/src/main/java/org/apache/curator/x/discovery/server/rest/InstanceCleanup.java
+++ 
b/curator-x-discovery-server/src/main/java/org/apache/curator/x/discovery/server/rest/InstanceCleanup.java
@@ -107,7 +107,7 @@ public class InstanceCleanup implements Closeable
             Collection<ServiceInstance<Object>>     instances = 
discovery.queryForInstances(name);
             for ( ServiceInstance<Object> instance : instances )
             {
-                if ( instance.getServiceType() != ServiceType.PERMANENT )
+                if ( instance.getServiceType() == ServiceType.STATIC )
                 {
                     if ( (System.currentTimeMillis() - 
instance.getRegistrationTimeUTC()) > instanceRefreshMs )
                     {

Reply via email to