Browse Source

ZOOKEEPER-1483. Fix leader election recipe documentation (Michi Mutsuzaki via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1384669 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 13 năm trước cách đây
mục cha
commit
97b3c20cb8

+ 3 - 0
CHANGES.txt

@@ -252,6 +252,9 @@ BUGFIXES:
   ZOOKEEPER-1494. C client: socket leak after receive timeout in
   ZOOKEEPER-1494. C client: socket leak after receive timeout in
   zookeeper_interest() (Michi Mutsuzaki via mahadev)
   zookeeper_interest() (Michi Mutsuzaki via mahadev)
 
 
+  ZOOKEEPER-1483. Fix leader election recipe documentation (Michi Mutsuzaki
+  via mahadev) 
+
 IMPROVEMENTS:
 IMPROVEMENTS:
 
 
   ZOOKEEPER-1170. Fix compiler (eclipse) warnings: unused imports,
   ZOOKEEPER-1170. Fix compiler (eclipse) warnings: unused imports,

+ 3 - 3
src/docs/src/documentation/content/xdocs/recipes.xml

@@ -642,7 +642,7 @@
       </listitem>
       </listitem>
 
 
       <listitem>
       <listitem>
-        <para>Watch for changes on "ELECTION/guid-n_j", where j is the smallest
+        <para>Watch for changes on "ELECTION/guid-n_j", where j is the largest
         sequence number such that j &lt; i and n_j is a znode in C;</para>
         sequence number such that j &lt; i and n_j is a znode in C;</para>
       </listitem>
       </listitem>
     </orderedlist>
     </orderedlist>
@@ -661,7 +661,7 @@
 
 
       <listitem>
       <listitem>
         <para>Otherwise, watch for changes on "ELECTION/guid-n_j", where j is the
         <para>Otherwise, watch for changes on "ELECTION/guid-n_j", where j is the
-        smallest sequence number such that j &lt; i and n_j is a znode in C;
+        largest sequence number such that j &lt; i and n_j is a znode in C;
         </para>
         </para>
       </listitem>
       </listitem>
     </orderedlist>
     </orderedlist>
@@ -672,7 +672,7 @@
       <listitem>
       <listitem>
 	    <para>Note that the znode having no preceding znode on the list of
 	    <para>Note that the znode having no preceding znode on the list of
 	    children does not imply that the creator of this znode is aware that it is
 	    children does not imply that the creator of this znode is aware that it is
-	    the current leader. Applications may consider creating a separate to znode
+	    the current leader. Applications may consider creating a separate znode
 	    to acknowledge that the leader has executed the leader procedure. </para>
 	    to acknowledge that the leader has executed the leader procedure. </para>
       </listitem>
       </listitem>
     </itemizedlist>
     </itemizedlist>