改名
This commit is contained in:
@@ -182,6 +182,7 @@ class Connection extends Pool
|
||||
/**
|
||||
* @param $coroutineName
|
||||
* @param $isMaster
|
||||
* @throws Exception
|
||||
*/
|
||||
public function release($coroutineName, $isMaster)
|
||||
{
|
||||
@@ -190,6 +191,8 @@ class Connection extends Pool
|
||||
return;
|
||||
}
|
||||
|
||||
$this->error('recover db client ' . $coroutineName);
|
||||
|
||||
/** @var PDO $client */
|
||||
$client = Context::getContext($coroutineName);
|
||||
if ($client->inTransaction()) {
|
||||
@@ -241,7 +244,7 @@ class Connection extends Pool
|
||||
try {
|
||||
if (empty($client) || !($client instanceof PDO)) {
|
||||
$result = false;
|
||||
} else {
|
||||
} else {
|
||||
$result = true;
|
||||
}
|
||||
} catch (Error | Throwable $exception) {
|
||||
|
||||
Reference in New Issue
Block a user