From: Bo Peng Date: Mon, 1 Feb 2021 16:26:17 +0000 (+0900) Subject: Doc: Fix some variable names in follow_master.sh.sample. X-Git-Tag: V4_0_13~9 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=3c5095ce979c862a8cd4bae977218d381490e6e2;p=pgpool2.git Doc: Fix some variable names in follow_sh.sample. Fix some variable names of "master" to "primary" which should be used in streaming replication mode. Conflicts: src/sample/scripts/follow_master.sh.sample --- diff --git a/doc.ja/src/sgml/failover.sgml b/doc.ja/src/sgml/failover.sgml index 647f0a750..47787a5fb 100644 --- a/doc.ja/src/sgml/failover.sgml +++ b/doc.ja/src/sgml/failover.sgml @@ -435,19 +435,23 @@ code to illustrate how the command is executed: --> - 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 + } +} diff --git a/doc/src/sgml/failover.sgml b/doc/src/sgml/failover.sgml index ac01ce652..9665ff9b7 100644 --- a/doc/src/sgml/failover.sgml +++ b/doc/src/sgml/failover.sgml @@ -348,19 +348,23 @@ of Pgpool-II. Here is a pseud code to illustrate how the command is executed: - 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 + } +}