This commit is contained in:
2023-08-24 14:15:00 +08:00
parent c3eced973a
commit d0375388b4
+2 -4
View File
@@ -309,12 +309,10 @@ class Connection extends Component
*/
public function release(PDO $PDO): void
{
if ($this->inTransaction()) {
return;
}
file_put_contents('php://output', '回收PDO连接.' . $this->cds, FILE_APPEND);
if (!$this->inTransaction()) {
$this->pool()->push($this->cds, [$PDO, time()]);
}
}
/**