This commit is contained in:
2021-01-05 10:37:46 +08:00
parent c20c61fc5f
commit 5f9dbba33e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -238,7 +238,7 @@ class Connection extends Pool
if (!empty($charset)) {
$link->query('SET NAMES ' . $charset);
}
$this->success('create db client -> ' . $cds . ':' . env('workerId', 0));
$this->success('create db client -> ' . $cds . ':' . env('workerId', 0) . ':' . Coroutine::getCid());
$this->incr($coroutineName);
if ($number = Context::getContext('begin_' . $coroutineName, Coroutine::getCid())) {
$number > 0 && $link->beginTransaction();
+1 -1
View File
@@ -85,7 +85,7 @@ class Redis extends Pool
if (empty($config['auth']) || !$redis->auth($config['auth'])) {
throw new RedisConnectException(sprintf('Redis Error: %s, Host %s, Auth %s', $redis->getLastError(), $config['host'], $config['auth']));
}
$this->success('create redis client -> ' . $config['host'] . ':' . env('workerId', 0));
$this->success('create redis client -> ' . $config['host'] . ':' . env('workerId', 0) . ':' . Coroutine::getCid());
if (!isset($config['read_timeout'])) {
$config['read_timeout'] = 10;
}