This commit is contained in:
2021-01-05 15:06:15 +08:00
parent 8f7c84a456
commit b28ceaf6d8
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -238,8 +238,7 @@ class Connection extends Pool
if (!empty($charset)) {
$link->query('SET NAMES ' . $charset);
}
$this->success('create db client has num ' . $this->size($coroutineName) . ', has create ' . $this->hasCreate[$coroutineName]);
$this->success('create db client -> ' . $cds . ':' . env('workerId', 0) . ':' . Coroutine::getCid());
$this->success('create client[address: ' . $cds . ', coroutine: ' . Coroutine::getCid() . ', has num: ' . $this->size($coroutineName) . ', has create: ' . $this->hasCreate[$coroutineName]);
$this->incr($coroutineName);
if ($number = Context::getContext('begin_' . $coroutineName, Coroutine::getCid())) {
$number > 0 && $link->beginTransaction();