改名
This commit is contained in:
@@ -35,7 +35,6 @@ class Connection extends Pool
|
|||||||
public function Heartbeat_detection($timer)
|
public function Heartbeat_detection($timer)
|
||||||
{
|
{
|
||||||
$this->creates = $timer;
|
$this->creates = $timer;
|
||||||
$this->debug('Db Heartbeat detection ' . var_export($this->hasCreate, true));
|
|
||||||
if ($this->lastTime == 0) {
|
if ($this->lastTime == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -207,9 +206,9 @@ class Connection extends Pool
|
|||||||
*/
|
*/
|
||||||
public function getConnection(array $config, $isMaster = false)
|
public function getConnection(array $config, $isMaster = false)
|
||||||
{
|
{
|
||||||
// if ($this->creates === 0) {
|
if ($this->creates === 0) {
|
||||||
// $this->creates = Timer::tick(10000, [$this, 'Heartbeat_detection']);
|
$this->creates = Timer::tick(10000, [$this, 'Heartbeat_detection']);
|
||||||
// }
|
}
|
||||||
[$coroutineId, $coroutineName] = $this->getIndex($config['cds'], $isMaster);
|
[$coroutineId, $coroutineName] = $this->getIndex($config['cds'], $isMaster);
|
||||||
if (!isset($this->hasCreate[$coroutineName])) {
|
if (!isset($this->hasCreate[$coroutineName])) {
|
||||||
$this->hasCreate[$coroutineName] = 0;
|
$this->hasCreate[$coroutineName] = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user