diff --git a/source/util/inc/tlogInt.h b/source/util/inc/tlogInt.h index 0d51862f86..1d7f3a063d 100644 --- a/source/util/inc/tlogInt.h +++ b/source/util/inc/tlogInt.h @@ -23,7 +23,7 @@ extern "C" { #include "tlog.h" void taosOpenNewSlowLogFile(); -void taosLogObjSetTimeStamp(int64_t ts); +void taosLogObjSetToday(int64_t ts); #ifdef __cplusplus } diff --git a/source/util/src/tlog.c b/source/util/src/tlog.c index 1794917d76..2f0c14ab9f 100644 --- a/source/util/src/tlog.c +++ b/source/util/src/tlog.c @@ -541,7 +541,7 @@ void taosResetLog() { } } -void taosLogObjSetTimeStamp(int64_t ts) { tsLogObj.timestampToday = ts; } +void taosLogObjSetToday(int64_t ts) { tsLogObj.timestampToday = ts; } static bool taosCheckFileIsOpen(char *logFileName) { TdFilePtr pFile = taosOpenFile(logFileName, TD_FILE_WRITE); diff --git a/source/util/test/log.cpp b/source/util/test/log.cpp index c45b6b97ae..5b7c7b9ef6 100644 --- a/source/util/test/log.cpp +++ b/source/util/test/log.cpp @@ -57,7 +57,7 @@ TEST(log, misc) { EXPECT_EQ(taosInitLog("taoslog", 1, true), 0); taosOpenNewSlowLogFile(); - taosLogObjSetTimeStamp(INT64_MIN); + taosLogObjSetToday(INT64_MIN); taosPrintSlowLog("slow log test"); // test taosInitLogOutput