You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by ph...@apache.org on 2011/12/15 00:40:00 UTC
svn commit: r1214552 - in /zookeeper/trunk: CHANGES.txt
src/java/main/org/apache/zookeeper/server/DataTree.java
Author: phunt
Date: Wed Dec 14 23:39:59 2011
New Revision: 1214552
URL: http://svn.apache.org/viewvc?rev=1214552&view=rev
Log:
ZOOKEEPER-1253. return value of DataTree.createNode is never used (Thomas Koch via phunt)
Modified:
zookeeper/trunk/CHANGES.txt
zookeeper/trunk/src/java/main/org/apache/zookeeper/server/DataTree.java
Modified: zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/trunk/CHANGES.txt?rev=1214552&r1=1214551&r2=1214552&view=diff
==============================================================================
--- zookeeper/trunk/CHANGES.txt (original)
+++ zookeeper/trunk/CHANGES.txt Wed Dec 14 23:39:59 2011
@@ -141,6 +141,9 @@ IMPROVEMENTS:
ZOOKEEPER-1232. remove unused o.a.z.server.util.Profiler
(Thomas Koch via phunt)
+ ZOOKEEPER-1253. return value of DataTree.createNode is never used
+ (Thomas Koch via phunt)
+
Release 3.4.0 -
Non-backward compatible changes:
Modified: zookeeper/trunk/src/java/main/org/apache/zookeeper/server/DataTree.java
URL: http://svn.apache.org/viewvc/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/DataTree.java?rev=1214552&r1=1214551&r2=1214552&view=diff
==============================================================================
--- zookeeper/trunk/src/java/main/org/apache/zookeeper/server/DataTree.java (original)
+++ zookeeper/trunk/src/java/main/org/apache/zookeeper/server/DataTree.java Wed Dec 14 23:39:59 2011
@@ -405,10 +405,9 @@ public class DataTree {
* an ephemeral node.
* @param zxid
* @param time
- * @return the patch of the created node
* @throws KeeperException
*/
- public String createNode(String path, byte data[], List<ACL> acl,
+ public void createNode(final String path, byte data[], List<ACL> acl,
long ephemeralOwner, int parentCVersion, long zxid, long time)
throws KeeperException.NoNodeException,
KeeperException.NodeExistsException {
@@ -478,7 +477,6 @@ public class DataTree {
dataWatches.triggerWatch(path, Event.EventType.NodeCreated);
childWatches.triggerWatch(parentName.equals("") ? "/" : parentName,
Event.EventType.NodeChildrenChanged);
- return path;
}
/**