瀏覽代碼

ZOOKEEPER-615. wrong javadoc for create with a sequence flag

git-svn-id: https://svn.apache.org/repos/asf/hadoop/zookeeper/trunk@889780 13f79535-47bb-0310-9956-ffa450edef68
Benjamin Reed 15 年之前
父節點
當前提交
6b85723d2d
共有 3 個文件被更改,包括 6 次插入2 次删除
  1. 2 0
      CHANGES.txt
  2. 2 1
      src/c/include/zookeeper.h
  3. 2 1
      src/java/main/org/apache/zookeeper/ZooKeeper.java

+ 2 - 0
CHANGES.txt

@@ -178,6 +178,8 @@ IMPROVEMENTS:
 
   ZOOKEEPER-425. Add OSGi metadata to zookeeper.jar (david bosschaert via breed)
 
+  ZOOKEEPER-615. wrong javadoc for create with a sequence flag (mahadev via breed)
+
 NEW FEATURES:
   ZOOKEEPER-539. generate eclipse project via ant target. (phunt via mahadev)
 

+ 2 - 1
src/c/include/zookeeper.h

@@ -580,7 +580,8 @@ ZOOAPI int zoo_state(zhandle_t *zh);
  * it does not already exists. The Create Flags affect the creation of nodes.
  * If ZOO_EPHEMERAL flag is set, the node will automatically get removed if the
  * client session goes away. If the ZOO_SEQUENCE flag is set, a unique
- * monotonically increasing sequence number is appended to the path name.
+ * monotonically increasing sequence number is appended to the path name. The
+ * sequence number is always fixed length of 10 digits, 0 padded.
  * 
  * \param zh the zookeeper handle obtained by a call to \ref zookeeper_init
  * \param path The name of the node. Expressed as a file name with slashes 

+ 2 - 1
src/java/main/org/apache/zookeeper/ZooKeeper.java

@@ -555,7 +555,8 @@ public class ZooKeeper {
      * <p>
      * The flags argument can also specify to create a sequential node. The
      * actual path name of a sequential node will be the given path plus a
-     * suffix "_i" where i is the current sequential number of the node. Once
+     * suffix "i" where i is the current sequential number of the node. The sequence
+     * number is always fixed length of 10 digits, 0 padded. Once
      * such a node is created, the sequential number will be incremented by one.
      * <p>
      * If a node with the same actual path already exists in the ZooKeeper, a