This commit is contained in:
2021-01-04 18:45:08 +08:00
parent 22b34ac0fc
commit 29fe4f59b2
4 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -235,7 +235,7 @@ class Connection extends Pool
if (!empty($charset)) {
$link->query('SET NAMES ' . $charset);
}
$this->success('create db client -> ' . $cds . ':' . $this->hasCreate[$coroutineName] . ':' . $this->size($coroutineName));
$this->success('create db client -> ' . $cds . ':' . env('workerId', 0));
$this->incr($coroutineName);
if ($number = Context::getContext('begin_' . $coroutineName, Coroutine::getCid())) {
$number > 0 && $link->beginTransaction();