From e805a02ef34e6f99c68848486cce37cc8d78b0dd Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 4 Dec 2018 01:26:57 +0800 Subject: [PATCH] fix not working sharing if primary DB node has failed --- api/src/Db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Db.php b/api/src/Db.php index 77628989f6..513b0ef72e 100644 --- a/api/src/Db.php +++ b/api/src/Db.php @@ -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)