提交 22a6115c 编写于 作者: Y YuQing

delete old file refine

上级 d818e590
......@@ -373,6 +373,10 @@ static int log_delete_old_file(LogContext *pContext,
"unlink %s fail, errno: %d, error info: %s\n", \
__LINE__, full_filename, errno, STRERROR(errno));
}
else if (NEED_COMPRESS_LOG(pContext->compress_log_flags))
{
unlink(old_filename);
}
return errno != 0 ? errno : EPERM;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册