From 2b8f0a2f5b8089c957cb3bb002f850c9fcaaf67d Mon Sep 17 00:00:00 2001 From: Yugo Nagata Date: Wed, 17 Jul 2013 16:52:24 +0900 Subject: [PATCH] Replace variable name PgpoolIsActive to PgpoolIsRunning This was a confusable name in watchdog context. --- innerNodeServerStatus.php | 6 +++--- lang/en.lang.php | 2 +- nodeServerStatus.php | 4 ++-- nodeStatus.php | 6 +++--- status.php | 18 +++++++++--------- templates/elements/.status_js.tpl.swp | Bin 0 -> 16384 bytes templates/elements/.status_nodeinfo.tpl.swp | Bin 0 -> 16384 bytes templates/elements/.status_options.tpl.swp | Bin 0 -> 16384 bytes .../elements/.status_pgsql_buttons.tpl.swp | Bin 0 -> 12288 bytes templates/elements/status_options.tpl | 2 +- templates/elements/status_pgsql_buttons.tpl | 2 +- templates/elements/status_pgsql_options.tpl | 4 ++-- templates/elements/status_stop_option.tpl | 2 +- templates/innerNodeServerStatus.tpl | 2 +- templates/nodeServerStatus.tpl | 2 +- templates/status.tpl | 8 ++++---- 16 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 templates/elements/.status_js.tpl.swp create mode 100644 templates/elements/.status_nodeinfo.tpl.swp create mode 100644 templates/elements/.status_options.tpl.swp create mode 100644 templates/elements/.status_pgsql_buttons.tpl.swp diff --git a/innerNodeServerStatus.php b/innerNodeServerStatus.php index f42db35..a35bf4f 100644 --- a/innerNodeServerStatus.php +++ b/innerNodeServerStatus.php @@ -46,14 +46,14 @@ if (isset($params['backend_hostname'])) { $backendHostPort = array(); } -$is_pgpool_active = DoesPgpoolPidExist(); +$is_pgpool_running = DoesPgpoolPidExist(); $nodeInfo = array(); foreach($backendHostName as $num => $hostname) { $nodeInfo[$num]['hostname'] = $backendHostName[$num]; $nodeInfo[$num]['port'] = $backendPort[$num]; $nodeInfo[$num]['is_active'] = NodeActive($num); - if ($is_pgpool_active) { + if ($is_pgpool_running) { $result = getNodeInfo($num); $nodeInfo[$num]['status'] = $result['status']; } @@ -63,7 +63,7 @@ foreach($backendHostName as $num => $hostname) { $nodeNum = (isset($_GET['num'])) ? $_GET['num'] : NULL; // Set vars -$tpl->assign('pgpoolIsActive', $is_pgpool_active); +$tpl->assign('pgpoolIsRunning', $is_pgpool_running); $tpl->assign('nodeServerStatus', $nodeInfo); $tpl->assign('nodeCount', count($nodeInfo)); $tpl->assign('nodeNum', $nodeNum); diff --git a/lang/en.lang.php b/lang/en.lang.php index b3c694f..f10528b 100644 --- a/lang/en.lang.php +++ b/lang/en.lang.php @@ -332,7 +332,7 @@ $message = array( 'strStopPgpool' => 'Stop pgpool', 'strStopPgsql' => 'Stop', 'strStopPgsqlOption' => 'Stop PostgreSQL Option', - 'strStoppingNow' => 'Not active', + 'strStoppingNow' => 'Not Running', 'strStreamingRepMode' => 'Streaming Replication mode', 'strSummary' => 'Summary', 'strSystemDb' => 'Partitioning Rule', diff --git a/nodeServerStatus.php b/nodeServerStatus.php index 0f41113..2fa29ec 100644 --- a/nodeServerStatus.php +++ b/nodeServerStatus.php @@ -39,6 +39,6 @@ if (!isset($_SESSION[SESSION_LOGIN_USER])) { $tpl->assign('help', basename( __FILE__, '.php')); // Display -$is_pgpool_active = DoesPgpoolPidExist(); -$tpl->assign('pgpoolIsActive', $is_pgpool_active); +$is_pgpool_running = DoesPgpoolPidExist(); +$tpl->assign('pgpoolIsRunning', $is_pgpool_running); $tpl->display('nodeServerStatus.tpl'); diff --git a/nodeStatus.php b/nodeStatus.php index c675f5e..e79fed8 100644 --- a/nodeStatus.php +++ b/nodeStatus.php @@ -46,8 +46,8 @@ $backends_in_conf = $configValue['backend_hostname']; // Get nodes' status $nodeCount = NULL; -$is_pgpool_active = DoesPgpoolPidExist(); -if ($is_pgpool_active) { +$is_pgpool_running = DoesPgpoolPidExist(); +if ($is_pgpool_running) { $nodeCount = getNodeCount(); } $has_not_loaded_node = FALSE; @@ -126,7 +126,7 @@ $tpl->assign('parallelMode', $isParallelMode); $tpl->assign('msgStopPgpool', $message['msgStopPgpool']); $tpl->assign('nodeCount', $nodeCount); $tpl->assign('has_not_loaded_node', $has_not_loaded_node); -$tpl->assign('pgpoolIsActive', $is_pgpool_active); +$tpl->assign('pgpoolIsRunning', $is_pgpool_running); // Set params $configValue = readConfigParams('recovery_1st_stage'); diff --git a/status.php b/status.php index e8122b6..17f7d48 100644 --- a/status.php +++ b/status.php @@ -36,7 +36,7 @@ if (!isset($_SESSION[SESSION_LOGIN_USER])) { exit(); } -$is_pgpool_active = DoesPgpoolPidExist(); +$is_pgpool_running = DoesPgpoolPidExist(); // Do action $nodeNumber = (isset($_POST['nodeNumber'])) ? $_POST['nodeNumber'] : -1; @@ -46,7 +46,7 @@ $viewPHP = _doAction($action, $nodeNumber); // Set vars setNodeInfoFromConf(); $tpl->assign('action', $action); -$tpl->assign('pgpoolIsActive', $is_pgpool_active); +$tpl->assign('pgpoolIsRunning', $is_pgpool_running); $tpl->assign('viewPHP', $viewPHP); $tpl->assign('help', basename( __FILE__, '.php')); $tpl->assign('pgpoolConf', _PGPOOL2_CONFIG_FILE); @@ -61,7 +61,7 @@ $tpl->assign('login_user', $_SESSION[SESSION_LOGIN_USER]); $tpl->assign('is_superuser', isSuperUser($_SESSION[SESSION_LOGIN_USER])); // Set params -$configValue = readConfigParams('use_watchdog'); +$configValue = readConfigParams(); $tpl->assign('params', $configValue); // Set pgpool command option @@ -199,9 +199,9 @@ function _doAction($action, $nodeNumber) function setNodeInfoFromConf() { global $tpl; - global $is_pgpool_active; + global $is_pgpool_running; - if (!$is_pgpool_active) { + if (!$is_pgpool_running) { $nodeInfo = array(); $configValue = readConfigParams(array('backend_hostname', 'backend_port')); @@ -401,7 +401,7 @@ function _execPcp($pcp_command, $nodeNumber, $errorCode) /** Add a new backend and reload conf */ function _addNewBackend() { - global $is_pgpool_active; + global $is_pgpool_running; global $_POST; // Check @@ -437,7 +437,7 @@ function _addNewBackend() // Reload pgpool $result = TRUE; - if (isset($_POST['reload_ok']) && $is_pgpool_active) { + if (isset($_POST['reload_ok']) && $is_pgpool_running) { $result = execPcp('PCP_RELOAD_PGPOOL', NO_ARGS); } @@ -447,7 +447,7 @@ function _addNewBackend() /** Remove a backend and reload conf */ function _removeBackend() { - global $is_pgpool_active; + global $is_pgpool_running; global $_POST; if (!isset($_POST['nodeNumber'])) { return FALSE; } @@ -502,7 +502,7 @@ function _removeBackend() // Reload pgpool $result = TRUE; - if ($is_pgpool_active) { + if ($is_pgpool_running) { $result = execPcp('PCP_RELOAD_PGPOOL', NO_ARGS); } return $result; diff --git a/templates/elements/.status_js.tpl.swp b/templates/elements/.status_js.tpl.swp new file mode 100644 index 0000000000000000000000000000000000000000..d0b92b63378d6cf93dd2b69bad9cdbc42b8733f3 GIT binary patch literal 16384 zcmeI3U2Ggz6~}LzwtSY4RH)D(biEDP-Prr#B-Esd6XLXq1GekNP6%oeYrJ!JcjDQZ z>CCL1mE#r(UZLs}ARbVQs0u>r0|;IaNFWORl7I$Y;Gu;|NI)BbRP_PU@IQ0s&c}Yl z4%!CX*jlRYI@7CD!ynr zrsfN;B23W|mhV+OU-R4E(gm;VJLdK7lhtJw$Slxhfwo^See!m;ch7jR)$h)Y@H@7j z>S~m|%`A{vAhSSbfy@G#1u_d{7RW4+S>S)!0={!IdlUn_IUJ-)tZxe6tJiJe`+E4= z>Z%XlW-plqG7DrD$SjaqAhSSbfy@G#1u_d{7RW4+Ss=5(f1w35ov|6{^yz~}!e z|9|EEjQt)w12(`Za2I&xeT+Q`1Q-QZZfEQb@EZ6N_zL(8xb|Mg-Ue@gzk!#*x4;H) zz<#h7>;WGGe|-<`2Yw4KgQvlhU>S^nH{Z?JFTpRs6JQM-0e6De-o@DOz>DBn@C29z z6W|kIAGirzdnaRm08fJ!I0ili4uMJV_jf=?@Hub>+ynN3+rX{hAGa~~bMOt&0T;mv zI1D}r{&FjH0e=Lqf**q)fiHt4unX)2cY~|9F!oRI9QZ1zgFN^+*a@!Tz~w4<0elTK zK^+LN9sC6IWrB|Yn!7u}P_KI1s`-X(adA=9P6~Ya!u98aFK85sd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kMuiQfZl(k~nYdAl1UE5W`6xEZi z>IP*~SPj2PBOh0>3$;=8&?U-v;xN;j>da}a_z;QGEOm#?q;E~Kv@IXyc_llMDba}_ zo&Cv12q9%+6&PNoOf<*Ep+{HYeYq1HL*_k|>3L+aEnmZquH=GHHo?(X%U%^>bcH-E zI1fz}B@C2`NaZnWqG7ZxV901k8{RR5L4JYk8>KYZG_7(=^J~pQ<@`g{(*AR!XUm6! zKMwD#q>o+=?*wwF2J+F(M1(yWp zG1ac$J`0X~^68u8i_)9*jJa1U$9DacPE?T6NX-RRL>kFfo9jdEZa|wRer##MYos*l z<6P2%R=w1Xr25KL(U>t2q1o~LIocGp74mSDQ{pF_eupI-M~!Ncdyr3w&y|yBXp}mW zl4FC<{E$r3viI2>(NH!!U1ChKuy+)1v3%Zf(G7B%6)6ci%@hN^kpkB*S+AVTi!z<*(is9-N6o7#hIVt|2>s Fe*;PjZJGc8 literal 0 HcmV?d00001 diff --git a/templates/elements/.status_nodeinfo.tpl.swp b/templates/elements/.status_nodeinfo.tpl.swp new file mode 100644 index 0000000000000000000000000000000000000000..91ae4d79070a3866cbafe48f09d882a80e19ffb1 GIT binary patch literal 16384 zcmeHOOKc=Z8LlkLn#x_|C@65!HUBN2bw7bhQE%$Ua z-8J@31{1{Q07yu1LE;jG#1SQ&q5uLU*dPRvcx}Y%fD#}F;E){P#DVYc=k$1HY%l8- zpl<2YxVo$V`s=H|s{a44_U4&O%NO~%;u(hPZH#^KiC;bP()FiV{VHRfc0@6s^+Idfu&vPZI>FBD!S5F4Nv%=w2RVfl-!0ZrLCJS%PA?*a&27+ zza(tY5{~jqzS33O*BogI%h{4e<=UfK%b(>8t&$lx6BJc;`_rQ;VF7O!O0G|LhfCbN?gsvXq{**==YSi41l~hsBwKC(-vXWhE&=xdGzK@~#LH1^g&*n~?~b*E z@9PawZ265vp>(6UAe}ACYkf-ihVF{J@yP<)CrdhpZ5i8@f-f9%LAF}DV@`~l!TaOW zygNo;WN1!1kuu#Qqii{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}((&@l^G;rKN*cmrHdtHf62dk|}(Ez3+cNbf7~3HS)S4P+h{fw_zVMggOMQNSo*6fg=H z1&jhl0i(eGT7jnRSJXa*lWzmaH{|N5SM3KfZ2dlG)^79<5X3j@_}MTMk^# ziB_}@)@vuY8O!@Ok|n06|u9K MJ3SpMr|F{CKj+ml>Hq)$ literal 0 HcmV?d00001 diff --git a/templates/elements/.status_pgsql_buttons.tpl.swp b/templates/elements/.status_pgsql_buttons.tpl.swp new file mode 100644 index 0000000000000000000000000000000000000000..f0919ba8af5a31476efcad378e1cbc6434376123 GIT binary patch literal 12288 zcmeI&!EVzq7yw|GGX(@MU_!MHu_h}Z%7Jp&E~~`Q7=j~}n>fL$W1HA1n!1eV08Tss z4}kUv@DLn0@(lcG+A^V%9grqf{FZ(>Rb2c3zo>_(|7iQ=V4wEr+fcF-O7_{!{DvX#z7*SZ?ttu#_b#F>nsUOVzibl zN`(p>PmN@b+ki`+a^-Ab9do%IngrGlN4axaS>G91cO>3J0Td_&au;_VHp#ua-Puq5 zmUolhxc&ldPyhu`00mG01yBG5Pyhw~BLQa`#|XSa%|Nj^7|EF+KKs<%mhiF24y+X)Ghz}4x#Lp%n zrx0Htogt)T^`i~=Zt0w{n2D1ZVefC4D6P6D(V6DD)s_ol6sTgwveTbCX3 zR8RO03&&hV$J~a@@WOjc=3kkLn6|10X&~Z)JQB*}j=CcQhgS{C9@T1Big4WbES$Tm)0C-bvz?vIroBa{%iW7D z+Wwt*YLk_Tw{Lsoc#-?+a;0X`LD?()mtyM*qy0XOnY8~@;WB~q>Z=x(z2A#e%kt{0 qgJ$r|U2J*KsJ=XO51yjr+2)z&c23IAoi-PnuU(wDGwYRKo$@cfN?eKn literal 0 HcmV?d00001 diff --git a/templates/elements/status_options.tpl b/templates/elements/status_options.tpl index 3eade1d..3dae499 100644 --- a/templates/elements/status_options.tpl +++ b/templates/elements/status_options.tpl @@ -2,7 +2,7 @@ {* Start Options *} {* --------------------------------------------------------------------- *} -{if $pgpoolIsActive == false} +{if $pgpoolIsRunning == false}

{$message.strStartOption|escape}

diff --git a/templates/elements/status_pgsql_buttons.tpl b/templates/elements/status_pgsql_buttons.tpl index 431e7bf..4f23e02 100644 --- a/templates/elements/status_pgsql_buttons.tpl +++ b/templates/elements/status_pgsql_buttons.tpl @@ -11,5 +11,5 @@ value="{$message.strReloadPgsql|escape}"> | diff --git a/templates/elements/status_pgsql_options.tpl b/templates/elements/status_pgsql_options.tpl index ca4532a..771def4 100644 --- a/templates/elements/status_pgsql_options.tpl +++ b/templates/elements/status_pgsql_options.tpl @@ -5,7 +5,7 @@ onSubmit="return execStopPgsql()" /> - + {include file="elements/status_stop_option.tpl"} @@ -29,7 +29,7 @@ onSubmit="return execRestartPgsql()" />
{$message.strCmdM|escape}(-m)
{$message.strCmdM|escape} (-m)
- + {include file="elements/status_stop_option.tpl"} diff --git a/templates/elements/status_stop_option.tpl b/templates/elements/status_stop_option.tpl index 513f56b..47674eb 100644 --- a/templates/elements/status_stop_option.tpl +++ b/templates/elements/status_stop_option.tpl @@ -1,4 +1,4 @@ -
{$message.strCmdM|escape}(-m)
{$message.strCmdM|escape} (-m)
{$message.strCmdM|escape}(-m) +
{$message.strCmdM|escape} (-m) {$nodeServerStatus.$node_num.hostname|escape} {$nodeServerStatus.$node_num.port|escape} - {if $pgpoolIsActive} + {if $pgpoolIsRunning} {if $nodeServerStatus.$node_num.status == $smarty.const.NODE_ACTIVE_NO_CONNECT} {$message.strNodeStatus1|escape} {elseif $nodeServerStatus.$node_num.status == $smarty.const.NODE_ACTIVE_CONNECTED} diff --git a/templates/nodeServerStatus.tpl b/templates/nodeServerStatus.tpl index e20643d..3639290 100644 --- a/templates/nodeServerStatus.tpl +++ b/templates/nodeServerStatus.tpl @@ -85,7 +85,7 @@ function showDetail(num)

{$message.strNodeStatus|escape} -{if $pgpoolIsActive == false}[{$message.strStoppingNow}]{/if} +{if $pgpoolIsRunning == false}[{$message.strStoppingNow}]{/if}

{$message.strPleaseWait|escape}

diff --git a/templates/status.tpl b/templates/status.tpl index 2051345..b25f5cf 100644 --- a/templates/status.tpl +++ b/templates/status.tpl @@ -67,7 +67,7 @@ {/if} {/if} - {if $pgpoolIsActive == true} + {if $pgpoolIsRunning == true}

@@ -175,7 +175,7 @@ {* --------------------------------------------------------------------- *} - {* Form of options to stop/restart PostgreSQL *} + {* Form of options to stop/restart PostgreSQL (Initially invisible) *} {* --------------------------------------------------------------------- *} {include file="elements/status_pgsql_options.tpl"} @@ -185,7 +185,7 @@ {* --------------------------------------------------------------------- *}

{$message.strPgpool|escape} - {if !$pgpoolIsActive}[ {$message.strStoppingNow|escape} ]{/if} + {if !$pgpoolIsRunning}[ {$message.strStoppingNow|escape} ]{/if}

{include file="elements/status_options.tpl"} -- 2.39.5