Doc: Fix some variable names in follow_master.sh.sample.
authorBo Peng <pengbo@sraoss.co.jp>
Mon, 1 Feb 2021 16:26:17 +0000 (01:26 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Mon, 1 Feb 2021 16:32:52 +0000 (01:32 +0900)
Fix some variable names of "master" to "primary" which should be used in streaming replication mode.

Conflicts:
src/sample/scripts/follow_master.sh.sample

doc.ja/src/sgml/failover.sgml
doc/src/sgml/failover.sgml

index 647f0a75016e37c2257305013eafd818a702dceb..47787a5fba539438f3d44a5057e9b0c184e6e031 100644 (file)
       code to illustrate how the command is executed:
       -->
       <programlisting>
-       for each backend node
-       {
-       if (the node is not the new primary)
-       set down node status to shared memory status
-       memorize that folllow master command is needed to execute
-       }
-       if (we need to executed follow master command)
-       fork a child process
-       (within the child process)
-
-       for each backend node
-       if (the node status in shared memory is down)
-       execute follow master command
+for each backend node
+{
+    if (the node is not the new primary)
+        set down node status to shared memory status
+        memorize that folllow master command is needed to execute
+}
+if (we need to executed follow master command)
+{
+    fork a child process
+    (within the child process)
+
+    for each backend node
+    {
+        if (the node status in shared memory is down)
+            execute follow master command
+    }
+}
       </programlisting>
      </para>
 
index ac01ce65218156b064bd9fdb7015ea7972679773..9665ff9b7779603b43093a15054bf47fa047739a 100644 (file)
       of <productname>Pgpool-II</productname>. Here is a pseud
       code to illustrate how the command is executed:
       <programlisting>
-       for each backend node
-       {
-       if (the node is not the new primary)
-       set down node status to shared memory status
-       memorize that follow master command is needed to execute
-       }
-       if (we need to executed follow master command)
-       fork a child process
-       (within the child process)
-
-       for each backend node
-       if (the node status in shared memory is down)
-       execute follow master command
+for each backend node
+{
+    if (the node is not the new primary)
+        set down node status to shared memory status
+        memorize that follow master command is needed to execute
+}
+if (we need to executed follow master command)
+{
+    fork a child process
+    (within the child process)
+
+    for each backend node
+    {
+        if (the node status in shared memory is down)
+            execute follow master command
+    }
+}
       </programlisting>
      </para>