summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNozomi Anzai2016-04-11 06:50:13 +0000
committerNozomi Anzai2016-04-11 06:50:13 +0000
commitb3038f2102698bc1dbe7de216afb9300e35dd5de (patch)
tree3d2f6d9aeca1f6fbfcbca4d1a9eb70323f941353
parent39ba0b33bb10b97f370c0793a31fc006f3d68292 (diff)
Fix to check "PCP Directory"V3_5_2_RPMV3_5_2
http://www.pgpool.net/mantisbt/view.php?id=187
-rw-r--r--install/checkParameter.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/install/checkParameter.php b/install/checkParameter.php
index e674c0d..fe16fd3 100644
--- a/install/checkParameter.php
+++ b/install/checkParameter.php
@@ -490,6 +490,8 @@ function showResult($msg)
*/
function getPcpCommands()
{
+ global $version;
+
$commands = array();
$commands[] = 'pcp_attach_node';
$commands[] = 'pcp_node_count';
@@ -501,18 +503,18 @@ function getPcpCommands()
$commands[] = 'pcp_stop_pgpool';
// 3.3 -
- if (3.3 <= _PGPOOL2_VERSION) {
+ if (3.3 <= $version) {
$commands[] = 'pcp_watchdog_info';
}
// 3.1 -
- if (3.1 <= _PGPOOL2_VERSION) {
+ if (3.1 <= $version) {
$commands[] = 'pcp_pool_status';
$commands[] = 'pcp_promote_node';
}
// - 3.4
- if (_PGPOOL2_VERSION <= 3.4) {
+ if ($version <= 3.4) {
$commands[] = 'pcp_systemdb_info';
}