curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cammcken...@apache.org
Subject [09/50] curator git commit: If a service is updated, update the services map. Closes #43
Date Tue, 21 Apr 2015 23:07:06 GMT
If a service is updated, update the services map. Closes #43


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

Branch: refs/heads/CURATOR-154
Commit: dad2888c7f8ffc2203f21f54cc27c93e7576c5e1
Parents: 7fc3e65
Author: randgalt <randgalt@apache.org>
Authored: Mon Jan 12 16:11:55 2015 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Mon Jan 12 16:11:55 2015 -0500

----------------------------------------------------------------------
 .../apache/curator/x/discovery/details/ServiceDiscoveryImpl.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/dad2888c/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java
----------------------------------------------------------------------
diff --git a/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java
b/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java
index 6472262..41c5d77 100644
--- a/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java
+++ b/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java
@@ -192,6 +192,7 @@ public class ServiceDiscoveryImpl<T> implements ServiceDiscovery<T>
         byte[]          bytes = serializer.serialize(service);
         String          path = pathForInstance(service.getName(), service.getId());
         client.setData().forPath(path, bytes);
+        services.put(service.getId(), service);
     }
 
     @VisibleForTesting


Mime
View raw message