diff options
author | Nozomi Anzai | 2012-05-31 06:51:15 +0000 |
---|---|---|
committer | Nozomi Anzai | 2012-05-31 06:51:15 +0000 |
commit | 99c418ac6495a51e15ebf11ce035f0ec65f5885f (patch) | |
tree | 51a504b6a5dc982b8fc209c5095b01b20140bb22 /nodeStatus.php | |
parent | 42b1316cf2e27759dbe4620133deb1688f6635da (diff) |
Add new pgpoolAdmin's parameter: _PGPOOL_VERSION so that pgpoolAdmin can control any pgpool-II version (after V2.0)
Diffstat (limited to 'nodeStatus.php')
-rw-r--r-- | nodeStatus.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nodeStatus.php b/nodeStatus.php index baedb7f..13580cd 100644 --- a/nodeStatus.php +++ b/nodeStatus.php @@ -106,7 +106,8 @@ for ($i = 0; $i < $nodeCount; $i++) { } else { array_push($nodeInfo[$i], 'none'); } - if (useStreaming()) { + // pcp_promote_node exists after V3.1 + if (hasPcpPromote() && useStreaming()) { array_push($nodeInfo[$i], 'promote'); } break; |