This commit is contained in:
as2252258@163.com
2021-04-23 03:41:12 +08:00
parent 1edd8c5429
commit 176d6256d7
3 changed files with 40 additions and 18 deletions
+6 -2
View File
@@ -195,7 +195,9 @@ class Connection extends Pool
return;
}
/** @var PDO $client */
$this->releaseClients('rds', $coroutineName);
/** @var PDO $client */
$client = Context::getContext($coroutineName);
if ($client->inTransaction()) {
$client->commit();
@@ -222,7 +224,9 @@ class Connection extends Pool
*/
public function connection_clear()
{
$this->flush(0);
$this->releaseClients('rds', 'rds');
$this->flush(0);
}