From 7466fcc39838935ef1a3782260b297774ac971f0 Mon Sep 17 00:00:00 2001 From: Shungang Li Date: Thu, 21 Dec 2023 19:52:40 +0800 Subject: [PATCH] fix: no more rm old log in resetlog --- source/util/src/tlog.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/util/src/tlog.c b/source/util/src/tlog.c index 184e18fc67..e113a95fcc 100644 --- a/source/util/src/tlog.c +++ b/source/util/src/tlog.c @@ -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 ");