Author: mahadev
Date: Tue Nov 18 15:13:54 2008
New Revision: 718759

URL: http://svn.apache.org/viewvc?rev=718759&view=rev
Log:
ZOOKEEPER-218. fix the error in the barrier example code. (pat via mahadev)

Modified:
    hadoop/zookeeper/branches/branch-3.0/CHANGES.txt
    hadoop/zookeeper/branches/branch-3.0/docs/zookeeperTutorial.html
    hadoop/zookeeper/branches/branch-3.0/docs/zookeeperTutorial.pdf
    
hadoop/zookeeper/branches/branch-3.0/src/docs/src/documentation/content/xdocs/zookeeperTutorial.xml

Modified: hadoop/zookeeper/branches/branch-3.0/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hadoop/zookeeper/branches/branch-3.0/CHANGES.txt?rev=718759&r1=718758&r2=718759&view=diff
==============================================================================
--- hadoop/zookeeper/branches/branch-3.0/CHANGES.txt (original)
+++ hadoop/zookeeper/branches/branch-3.0/CHANGES.txt Tue Nov 18 15:13:54 2008
@@ -20,6 +20,8 @@
 
    ZOOKEEPER-228. fix apache header missing in DBTest. (mahadev)
 
+   ZOOKEEPER-218. fix the error in the barrier example code. (pat via mahadev)
+
 Release 3.0.0 - 2008-10-21
 
 Non-backward compatible changes:

Modified: hadoop/zookeeper/branches/branch-3.0/docs/zookeeperTutorial.html
URL: 
http://svn.apache.org/viewvc/hadoop/zookeeper/branches/branch-3.0/docs/zookeeperTutorial.html?rev=718759&r1=718758&r2=718759&view=diff
==============================================================================
--- hadoop/zookeeper/branches/branch-3.0/docs/zookeeperTutorial.html (original)
+++ hadoop/zookeeper/branches/branch-3.0/docs/zookeeperTutorial.html Tue Nov 18 
15:13:54 2008
@@ -292,12 +292,12 @@
          * Barrier constructor
          *
          * @param address
-         * @param name
+         * @param root
          * @param size
          */
-        Barrier(String address, String name, int size) {
+        Barrier(String address, String root, int size) {
             super(address);
-            this.root = name;
+            this.root = root;
             this.size = size;
 
             // Create barrier node
@@ -348,7 +348,7 @@
 
         boolean enter() throws KeeperException, InterruptedException{
             zk.create(root + "/" + name, new byte[0], Ids.OPEN_ACL_UNSAFE,
-                    CreateMode.EPHEMERAL);
+                    CreateMode.EPHEMERAL_SEQUENTIAL);
             while (true) {
                 synchronized (mutex) {
                     List<String> list = zk.getChildren(root, true);
@@ -590,12 +590,12 @@
          * Barrier constructor
          *
          * @param address
-         * @param name
+         * @param root
          * @param size
          */
-        Barrier(String address, String name, int size) {
+        Barrier(String address, String root, int size) {
             super(address);
-            this.root = name;
+            this.root = root;
             this.size = size;
 
             // Create barrier node
@@ -634,7 +634,7 @@
 
         boolean enter() throws KeeperException, InterruptedException{
             zk.create(root + "/" + name, new byte[0], Ids.OPEN_ACL_UNSAFE,
-                    CreateMode.EPHEMERAL);
+                    CreateMode.EPHEMERAL_SEQUENTIAL);
             while (true) {
                 synchronized (mutex) {
                     List<String> list = zk.getChildren(root, true);

Modified: hadoop/zookeeper/branches/branch-3.0/docs/zookeeperTutorial.pdf
URL: 
http://svn.apache.org/viewvc/hadoop/zookeeper/branches/branch-3.0/docs/zookeeperTutorial.pdf?rev=718759&r1=718758&r2=718759&view=diff
==============================================================================
Binary files - no diff available.

Modified: 
hadoop/zookeeper/branches/branch-3.0/src/docs/src/documentation/content/xdocs/zookeeperTutorial.xml
URL: 
http://svn.apache.org/viewvc/hadoop/zookeeper/branches/branch-3.0/src/docs/src/documentation/content/xdocs/zookeeperTutorial.xml?rev=718759&r1=718758&r2=718759&view=diff
==============================================================================
--- 
hadoop/zookeeper/branches/branch-3.0/src/docs/src/documentation/content/xdocs/zookeeperTutorial.xml
 (original)
+++ 
hadoop/zookeeper/branches/branch-3.0/src/docs/src/documentation/content/xdocs/zookeeperTutorial.xml
 Tue Nov 18 15:13:54 2008
@@ -125,12 +125,12 @@
          * Barrier constructor
          *
          * @param address
-         * @param name
+         * @param root
          * @param size
          */
-        Barrier(String address, String name, int size) {
+        Barrier(String address, String root, int size) {
             super(address);
-            this.root = name;
+            this.root = root;
             this.size = size;
 
             // Create barrier node
@@ -182,7 +182,7 @@
 
         boolean enter() throws KeeperException, InterruptedException{
             zk.create(root + "/" + name, new byte[0], Ids.OPEN_ACL_UNSAFE,
-                    CreateMode.EPHEMERAL);
+                    CreateMode.EPHEMERAL_SEQUENTIAL);
             while (true) {
                 synchronized (mutex) {
                     List<String> list = zk.getChildren(root, true);
@@ -422,12 +422,12 @@
          * Barrier constructor
          *
          * @param address
-         * @param name
+         * @param root
          * @param size
          */
-        Barrier(String address, String name, int size) {
+        Barrier(String address, String root, int size) {
             super(address);
-            this.root = name;
+            this.root = root;
             this.size = size;
 
             // Create barrier node
@@ -466,7 +466,7 @@
 
         boolean enter() throws KeeperException, InterruptedException{
             zk.create(root + "/" + name, new byte[0], Ids.OPEN_ACL_UNSAFE,
-                    CreateMode.EPHEMERAL);
+                    CreateMode.EPHEMERAL_SEQUENTIAL);
             while (true) {
                 synchronized (mutex) {
                     List<String> list = zk.getChildren(root, true);


Reply via email to