delete old file refine
parent
d818e59009
commit
22a6115c4e
|
|
@ -373,6 +373,10 @@ static int log_delete_old_file(LogContext *pContext,
|
||||||
"unlink %s fail, errno: %d, error info: %s\n", \
|
"unlink %s fail, errno: %d, error info: %s\n", \
|
||||||
__LINE__, full_filename, errno, STRERROR(errno));
|
__LINE__, full_filename, errno, STRERROR(errno));
|
||||||
}
|
}
|
||||||
|
else if (NEED_COMPRESS_LOG(pContext->compress_log_flags))
|
||||||
|
{
|
||||||
|
unlink(old_filename);
|
||||||
|
}
|
||||||
return errno != 0 ? errno : EPERM;
|
return errno != 0 ? errno : EPERM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue