summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNozomi Anzai2015-10-14 02:48:43 +0000
committerNozomi Anzai2015-10-14 02:48:43 +0000
commitd881b9f9f9db9bb9aac110f8074073c86011490d (patch)
treefc2539a63eb00f78b9cc256a33a13b62e8687029
parent2f061eb9d7a23077320ca5eb27c6499e6cd379a6 (diff)
Define a new error code "e1013" and fix to return it if pcp_watchdog_info failed
http://www.pgpool.net/mantisbt/view.php?id=149
-rw-r--r--command.php3
-rw-r--r--doc/en/errorCode.html2
-rw-r--r--doc/ja/errorCode.html2
-rw-r--r--lang/en.lang.php1
-rw-r--r--lang/ja.lang.php1
5 files changed, 7 insertions, 2 deletions
diff --git a/command.php b/command.php
index 8e01703..5f08371 100644
--- a/command.php
+++ b/command.php
@@ -221,11 +221,10 @@ function getWatchdogInfo($i = '')
{
global $tpl;
-
$result = execPcp('PCP_WATCHDOG_INFO', $i);
if (!array_key_exists('SUCCESS', $result)) {
- $errorCode = 'e1003';
+ $errorCode = 'e1013';
$tpl->assign('errorCode', $errorCode);
$tpl->display('innerError.tpl');
exit();
diff --git a/doc/en/errorCode.html b/doc/en/errorCode.html
index 6d15b89..ce46873 100644
--- a/doc/en/errorCode.html
+++ b/doc/en/errorCode.html
@@ -70,6 +70,8 @@
<tr><th class="right_border"><label>e1009</label></th><td class="right_border">No found pcp.conf.</td><td>Please confirm whether in the place that pcp.conf specified by a set menu. Moreover, please confirm whether there is an appropriate right of access to pcp.conf. </td></tr>
<tr><th class="right_border"><label>e1010</label></th><td class="right_border">pcp_attach_node command error occurred.</td><td>It is an execution of pcp_attach_node error. Please confirm whether pcp_detach_node can be normally executed. </td></tr>
<tr><th class="right_border"><label>e1011</label></th><td class="right_border">No found log ifle.</td><td>Please confirm whether in the place that the pgpool log file specified by a set menu. Moreover, please confirm whether there is an appropriate right of access to the specified log file. It is made for the directory specified with logdir of pgpool.conf by the file name of pgpool.log when not specifying it. </td></tr>
+<tr><th class="right_border"><label>e1012</label></th><td class="right_border">pcp_recovery_node command error occurred.</td><td>It is an execution of pcp_recovery_node error. Please confirm whether pcp_recovery_node can be normally executed. </td></tr>
+<tr><th class="right_border"><label>e1013</label></th><td class="right_border">pcp_watchdog_info command error occurred.</td><td>It is an execution of pcp_watchdog_info error. Please confirm whether pcp_watchdog_info can be normally executed. </td></tr>
</table>
diff --git a/doc/ja/errorCode.html b/doc/ja/errorCode.html
index 2551454..18749a7 100644
--- a/doc/ja/errorCode.html
+++ b/doc/ja/errorCode.html
@@ -64,6 +64,8 @@
<tr><th class="right_border"><label>e1009</label></th><td class="right_border">指定したpcp.confが見つかりません</td><td>pcp.confが設定メニューで指定した場所にあるか確認してください。またpcp.confに適切なアクセス権があるか確認してください。</td></tr>
<tr><th class="right_border"><label>e1010</label></th><td class="right_border">pcp_attach_nodeコマンドでエラーが発生しました</td><td>pcp_attach_nodeの実行エラーです。pcp_detach_nodeが正常に実行できるか確認してください。</td></tr>
<tr><th class="right_border"><label>e1011</label></th><td class="right_border">ログファイルが見つかりません</td><td>pgpoolログファイルが設定メニューで指定した場所にあるか確認してください。また指定したログファイルに適切なアクセス権があるか確認してください。指定しない場合には、pgpool.confのlogdirで指定したディレクトリにpgpool.logというファイル名で作成されます。</td></tr>
+<tr><th class="right_border"><label>e1012</label></th><td class="right_border">pcp_recovery_nodeコマンドでエラーが発生しました</td><td>pcp_recovery_nodeの実行エラーです。pcp_recovery_nodeが正常に実行できるか確認してください。</td></tr>
+<tr><th class="right_border"><label>e1013</label></th><td class="right_border">pcp_watchdog_infoコマンドでエラーが発生しました</td><td>pcp_watchdog_infoの実行エラーです。pcp_watchdog_infoが正常に実行できるか確認してください。</td></tr>
</table>
<h3>ノードステータス</h3>
diff --git a/lang/en.lang.php b/lang/en.lang.php
index 64a9e18..12a140f 100644
--- a/lang/en.lang.php
+++ b/lang/en.lang.php
@@ -388,6 +388,7 @@ $message = array(
'e1010' => 'pcp_attach_node command error occurred.',
'e1011' => 'Log file not found.',
'e1012' => 'pcp_recovery_node command error occurred.',
+ 'e1013' => 'pcp_watchdog_info command error occurred.',
'e2001' => 'Database connection error occurred.',
'e2002' => 'The error occurred when SELECT was executed',
'e2003' => 'pgpool.conf not found.',
diff --git a/lang/ja.lang.php b/lang/ja.lang.php
index 990672e..f7f7713 100644
--- a/lang/ja.lang.php
+++ b/lang/ja.lang.php
@@ -382,6 +382,7 @@ $message = array(
'e1010' => 'pcp_attach_nodeコマンドでエラーが発生しました',
'e1011' => 'ログファイルが見つかりません',
'e1012' => 'pcp_recovery_nodeコマンドでエラーが発生しました',
+ 'e1013' => 'pcp_watchdog_infoコマンドでエラーが発生しました',
'e2001' => 'データベースに接続できません',
'e2002' => 'レコード取得時にエラーが発生しました',
'e2003' => 'pgpool.confが見つかりません',