qqq
This commit is contained in:
+2
-4
@@ -309,11 +309,9 @@ class Connection extends Component
|
|||||||
*/
|
*/
|
||||||
public function release(PDO $PDO): void
|
public function release(PDO $PDO): void
|
||||||
{
|
{
|
||||||
if ($this->inTransaction()) {
|
if (!$this->inTransaction()) {
|
||||||
return;
|
$this->pool()->push($this->cds, [$PDO, time()]);
|
||||||
}
|
}
|
||||||
file_put_contents('php://output', '回收PDO连接.' . $this->cds, FILE_APPEND);
|
|
||||||
$this->pool()->push($this->cds, [$PDO, time()]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user