This commit is contained in:
Ralf Becker 2015-07-14 11:14:37 +00:00
parent 431a19b460
commit 8c60755dcf

View File

@ -352,7 +352,7 @@ class egw_db
// check Galera wsrep_local_state for node is not in state Synced, eg. Donor
// check is only done for Type=mysql and will succed if no Galera
if ($new_connection && $this->Type == 'mysql' && strpos($this->Host, ';') !== false &&
($state = $this->query("SHOW STATUS LIKE 'wsrep_local_state'")->fetchColumn(1) !== false) &&
($state = $this->query("SHOW STATUS LIKE 'wsrep_local_state'")->fetchColumn(1)) !== false &&
$state != 4) // 4 = Synced
{
throw new egw_exception_db_connection('wsrep-local-state='.array2string($state).' != 4');