summaryrefslogtreecommitdiff
path: root/nodeStatus.php
diff options
context:
space:
mode:
authorNozomi Anzai2012-05-31 06:51:15 +0000
committerNozomi Anzai2012-05-31 06:51:15 +0000
commit99c418ac6495a51e15ebf11ce035f0ec65f5885f (patch)
tree51a504b6a5dc982b8fc209c5095b01b20140bb22 /nodeStatus.php
parent42b1316cf2e27759dbe4620133deb1688f6635da (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.php3
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;