-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在1.2.12版本 获取锁仍然还是存在bug #243
Comments
您说的地方改过了,还是2千多次锁在这: |
他那个文件锁是日志配置文件锁 |
@enddeadroyal,zlog在一般场景中已经是非常安全了,我专门写的每秒并发50压力测试程序,的确都压出问题了,而且昨天试了一下,不轮转也有问题,日志文件写到58M就死锁了。 |
在rotater.c文件中zlog_rotater_trylock函数中
lock_file失败的场合 并没有释放互斥量,导致后面程序trylock一直处于busy状态。
调用者 此处返回0,并没有跳转到exit段标,进行解锁释放。
zlog_rotater_trylock函数应该修改为
@HardySimpson
The text was updated successfully, but these errors were encountered: