hadoop-zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r718758 - in /hadoop/zookeeper/trunk: CHANGES.txt docs/zookeeperTutorial.html docs/zookeeperTutorial.pdf src/docs/src/documentation/content/xdocs/zookeeperTutorial.xml
Date Tue, 18 Nov 2008 23:11:24 GMT
Author: mahadev
Date: Tue Nov 18 15:11:23 2008
New Revision: 718758

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

Modified:
    hadoop/zookeeper/trunk/CHANGES.txt
    hadoop/zookeeper/trunk/docs/zookeeperTutorial.html
    hadoop/zookeeper/trunk/docs/zookeeperTutorial.pdf
    hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperTutorial.xml

Modified: hadoop/zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=718758&r1=718757&r2=718758&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/CHANGES.txt (original)
+++ hadoop/zookeeper/trunk/CHANGES.txt Tue Nov 18 15:11:23 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/trunk/docs/zookeeperTutorial.html
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/docs/zookeeperTutorial.html?rev=718758&r1=718757&r2=718758&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/docs/zookeeperTutorial.html (original)
+++ hadoop/zookeeper/trunk/docs/zookeeperTutorial.html Tue Nov 18 15:11:23 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/trunk/docs/zookeeperTutorial.pdf
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/docs/zookeeperTutorial.pdf?rev=718758&r1=718757&r2=718758&view=diff
==============================================================================
Binary files - no diff available.

Modified: hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperTutorial.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperTutorial.xml?rev=718758&r1=718757&r2=718758&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperTutorial.xml
(original)
+++ hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperTutorial.xml
Tue Nov 18 15:11:23 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);



Mime
View raw message