Define a new error code "e1013" and fix to return it if pcp_watchdog_info failed
authorNozomi Anzai <[email protected]>
Wed, 14 Oct 2015 02:48:43 +0000 (11:48 +0900)
committerNozomi Anzai <[email protected]>
Wed, 14 Oct 2015 02:48:43 +0000 (11:48 +0900)
http://www.pgpool.net/mantisbt/view.php?id=149

command.php
doc/en/errorCode.html
doc/ja/errorCode.html
lang/en.lang.php
lang/ja.lang.php

index 8e017035048a8475d1ec7156c5c4ee4e1b5f4a9f..5f0837166f7ca87b994b28947a3763f20d92d0cf 100644 (file)
@@ -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();
index 6d15b891ff578ca63fe9ec3258aa661b92552b99..ce468731658b495cfcb2032db486300227d98a7b 100644 (file)
@@ -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>
 
index 2551454f2ddcfc3c979da8265815792cce2e2701..18749a7f0332c98155be88f593427d90a6f8a335 100644 (file)
@@ -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>
index 64a9e18eb5d346cd4fa6fc8b7cf9de0d4a7ed0ee..12a140fa947187393cb3aad7a7a1143dbb4c571a 100644 (file)
@@ -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.',
index 990672eec8afcdc8baab9ffb412d5a9afdafb390..f7f7713d67b892f77c9b20dc41e3ad8dbadaaa6e 100644 (file)
@@ -382,6 +382,7 @@ $message = array(
     'e1010' => 'pcp_attach_nodeコマンドでエラーが発生しました',
     'e1011' => 'ログファイルが見つかりません',
     'e1012' => 'pcp_recovery_nodeコマンドでエラーが発生しました',
+    'e1013' => 'pcp_watchdog_infoコマンドでエラーが発生しました',
     'e2001' => 'データベースに接続できません',
     'e2002' => 'レコード取得時にエラーが発生しました',
     'e2003' => 'pgpool.confが見つかりません',