fix: reserve log file name

This commit is contained in:
kailixu 2024-06-12 11:17:08 +08:00
parent f96721cb6d
commit fa05b2c8b6
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ static void taosUnLockLogFile(TdFilePtr pFile) {
}
static void taosReserveOldLog(char *oldName, char *keepName) {
if (tsLogKeepDays == 0) {
if (tsLogKeepDays <= 0) {
keepName[0] = 0;
return;
}