fix not working sharing if primary DB node has failed

This commit is contained in:
Ralf Becker 2018-12-04 01:26:57 +08:00
parent 314fe706f5
commit e805a02ef3

View File

@ -432,7 +432,7 @@ class Db
*/
protected function _connect($Host)
{
if (!$this->Link_ID)
if (!$this->Link_ID || $Host != $this->Link_ID->host)
{
$Database = $User = $Password = $Port = $Type = '';
foreach(array('Database','User','Password','Port','Type') as $name)