fix: no more rm old log in resetlog
This commit is contained in:
parent
4906243115
commit
7466fcc398
|
@ -337,14 +337,10 @@ static int32_t taosOpenNewLogFile() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void taosResetLog() {
|
void taosResetLog() {
|
||||||
char lastName[LOG_FILE_NAME_LEN + 20];
|
|
||||||
sprintf(lastName, "%s.%d", tsLogObj.logName, tsLogObj.flag);
|
|
||||||
|
|
||||||
// force create a new log file
|
// force create a new log file
|
||||||
tsLogObj.lines = tsNumOfLogLines + 10;
|
tsLogObj.lines = tsNumOfLogLines + 10;
|
||||||
|
|
||||||
taosOpenNewLogFile();
|
taosOpenNewLogFile();
|
||||||
(void)taosRemoveFile(lastName);
|
|
||||||
|
|
||||||
uInfo("==================================");
|
uInfo("==================================");
|
||||||
uInfo(" reset log file ");
|
uInfo(" reset log file ");
|
||||||
|
|
Loading…
Reference in New Issue