curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject git commit: CURATOR-81 Only STATIC instances should be cleaned
Date Tue, 07 Jan 2014 19:43:46 GMT
Updated Branches:
  refs/heads/master 262d57e73 -> 136f3be9f


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/master
Commit: 136f3be9f41333bb9bc19c29917e09e89de7e8a1
Parents: 262d57e
Author: randgalt <randgalt@apache.org>
Authored: Tue Jan 7 14:43:24 2014 -0500
Committer: randgalt <randgalt@apache.org>
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 )
                     {


Mime
View raw message