Fix to check "PCP Directory" V3_5_2 V3_5_2_RPM
authorNozomi Anzai <[email protected]>
Mon, 11 Apr 2016 06:50:13 +0000 (15:50 +0900)
committerNozomi Anzai <[email protected]>
Mon, 11 Apr 2016 06:50:13 +0000 (15:50 +0900)
http://www.pgpool.net/mantisbt/view.php?id=187

install/checkParameter.php

index e674c0d3f3c5156f4b8f0dcb8b403900764dda92..fe16fd3600c491210bf7eb738d66b584a054dd70 100644 (file)
@@ -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';
     }