TinyWebServer icon indicating copy to clipboard operation
TinyWebServer copied to clipboard

数据库疑似bug

Open wufei-png opened this issue 2 years ago • 2 comments

MYSQL *connection_pool::GetConnection() if (0 == connList.size()) return NULL; reserve.wait(); 这里如果没有资源了直接返回了啊,这个wait不是等了个寂寞?

wufei-png avatar Sep 09 '22 02:09 wufei-png

我再问一个 image

image

日志的阻塞队列里的pop函数感觉有点怪啊,这个wait等条件变量的广播通知,没有其他参数,应该是不通知就一直阻塞?,怎么会进入if语句内部呢?

wufei-png avatar Sep 19 '22 14:09 wufei-png

没有不是直接return了吗

diandengpao avatar Apr 22 '23 15:04 diandengpao