This commit is contained in:
2023-02-13 14:27:28 +08:00
parent 59e25c1648
commit ed24164680
2 changed files with 14 additions and 1 deletions
+11
View File
@@ -253,6 +253,17 @@ class Connection extends Component
}
public function restore($isMaster)
{
if ($isMaster) {
Context::remove($this->cds . 'master');
} else {
$slave = ($this->slaveConfig['cds'] ?? $this->cds) . 'slave';
Context::remove($slave);
}
}
/**
*
* 回收链接