Skip to content
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

zlog-1.2.16版本中转档失败问题 #240

Open
royzsss opened this issue Sep 26, 2023 · 0 comments
Open

zlog-1.2.16版本中转档失败问题 #240

royzsss opened this issue Sep 26, 2023 · 0 comments

Comments

@royzsss
Copy link

royzsss commented Sep 26, 2023

lockfile.c:31中open函数的flags参数为O_RDWD | O_CREAT | O_EXCL感觉会导致文件锁存在后报错打开失败,从而使zlog_rotater_trylock函数返回错误,日志文件转档失败
同时zlog_rotater_trylock接口在出错返回后不会进行unlock
请确认是否存在该问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant