fix: no more rm old log in resetlog

This commit is contained in:
Shungang Li 2023-12-21 19:52:40 +08:00
parent 4906243115
commit 7466fcc398
1 changed files with 0 additions and 4 deletions

View File

@ -337,14 +337,10 @@ static int32_t taosOpenNewLogFile() {
}
void taosResetLog() {
char lastName[LOG_FILE_NAME_LEN + 20];
sprintf(lastName, "%s.%d", tsLogObj.logName, tsLogObj.flag);
// force create a new log file
tsLogObj.lines = tsNumOfLogLines + 10;
taosOpenNewLogFile();
(void)taosRemoveFile(lastName);
uInfo("==================================");
uInfo(" reset log file ");