From: Nozomi Anzai Date: Wed, 14 Oct 2015 02:48:43 +0000 (+0900) Subject: Define a new error code "e1013" and fix to return it if pcp_watchdog_info failed X-Git-Tag: V3_5_BETA1~19 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=d881b9f9f9db9bb9aac110f8074073c86011490d;p=pgpooladmin.git 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 --- 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 @@ No found pcp.conf.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. pcp_attach_node command error occurred.It is an execution of pcp_attach_node error. Please confirm whether pcp_detach_node can be normally executed. No found log ifle.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. +pcp_recovery_node command error occurred.It is an execution of pcp_recovery_node error. Please confirm whether pcp_recovery_node can be normally executed. +pcp_watchdog_info command error occurred.It is an execution of pcp_watchdog_info error. Please confirm whether pcp_watchdog_info can be normally executed. 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 @@ 指定したpcp.confが見つかりませんpcp.confが設定メニューで指定した場所にあるか確認してください。またpcp.confに適切なアクセス権があるか確認してください。 pcp_attach_nodeコマンドでエラーが発生しましたpcp_attach_nodeの実行エラーです。pcp_detach_nodeが正常に実行できるか確認してください。 ログファイルが見つかりませんpgpoolログファイルが設定メニューで指定した場所にあるか確認してください。また指定したログファイルに適切なアクセス権があるか確認してください。指定しない場合には、pgpool.confのlogdirで指定したディレクトリにpgpool.logというファイル名で作成されます。 +pcp_recovery_nodeコマンドでエラーが発生しましたpcp_recovery_nodeの実行エラーです。pcp_recovery_nodeが正常に実行できるか確認してください。 +pcp_watchdog_infoコマンドでエラーが発生しましたpcp_watchdog_infoの実行エラーです。pcp_watchdog_infoが正常に実行できるか確認してください。

ノードステータス

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が見つかりません',