Author: ralfbecker
New Revision: 55089
URL: http://svn.stylite.de/viewvc/egroupware?rev=55089&view=rev
Log:
fix old class name in Galera health check
Modified:
trunk/egroupware/api/src/Db.php
— trunk/egroupware/api/src/Db.php (original)
+++ trunk/egroupware/api/src/Db.php Sun Feb 21 12:07:46 2016
@@ -46,7 +46,7 @@
-
- egw_db allows to use exceptions to catch sql-erros, not existing tables or failure to connect to the database, eg.:
-
- Api\Db allows to use exceptions to catch sql-erros, not existing tables or failure to connect to the database, eg.:
-
try {
-
$this->db->connect();
-
$num_config = $this->db->select(config::TABLE,'COUNT(config_name)',false,__LINE__,__FILE__)->fetchColumn();
@@ -162,7 +162,7 @@
* Can be used to transparently convert tablenames, eg. ‘mytable’ => ‘otherdb.othertable’
*
* Can be set eg. at the end of header.inc.php.
-
- Only works with new egw_db methods (select, insert, update, delete) not query!
-
- Only works with new Api\Db methods (select, insert, update, delete) not query!
-
-
@var array
*/
@@ -373,13 +373,13 @@
-
- To enable this check add the following to your header.inc.php:
-
-
- require_once(EGW_API_INC.’/class.egw_db.inc.php’);
-
- self::$health_check = array(‘egw_db’, ‘galera_cluster_health’);
-
-
-
@param egw_db $db already connected egw_db instance to check
-
- require_once(EGW_INCLUDE_ROOT.’/api/src/Db.php’);
-
- EGroupware\Api\Db::$health_check = array(‘EGroupware\Api\Db’, ‘galera_cluster_health’);
-
-
-
@param Api\Db $db already connected Api\Db instance to check
-
@throws egw_exception_db_connection if node should NOT be used
*/
- static function galera_cluster_health(egw_db $db)
- static function galera_cluster_health(Api\Db $db)
{
if (($state = $db->query(“SHOW STATUS WHERE Variable_name in (‘wsrep_cluster_size’,‘wsrep_local_state’,‘wsrep_local_state_comment’)”)->GetAssoc()))
{
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs