You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ca...@apache.org on 2015/08/12 00:29:04 UTC

[3/4] curator git commit: Access data the same way

Access data the same way


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

Branch: refs/heads/master
Commit: f3ff7e75f305a6d52a8fc9f7e9defae4299a66a2
Parents: 5cfa483
Author: Alex Brasetvik <al...@brasetvik.com>
Authored: Mon Aug 3 02:00:44 2015 +0200
Committer: Alex Brasetvik <al...@brasetvik.com>
Committed: Mon Aug 3 02:00:44 2015 +0200

----------------------------------------------------------------------
 .../curator/framework/recipes/nodes/PersistentEphemeralNode.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/f3ff7e75/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java
index 7a2ab73..0d963e0 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java
+++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java
@@ -338,7 +338,7 @@ public class PersistentEphemeralNode implements Closeable
         this.data.set(Arrays.copyOf(data, data.length));
         if ( isActive() )
         {
-            client.setData().inBackground().forPath(getActualPath(), this.data.get());
+            client.setData().inBackground().forPath(getActualPath(), getData());
         }
     }