提交 349dd69f 编写于 作者: dengyihao's avatar dengyihao

fix compile error

上级 ee7a18db
...@@ -271,20 +271,20 @@ void validateFst() { ...@@ -271,20 +271,20 @@ void validateFst() {
} }
delete m; delete m;
} }
static std::string logDir = TD_TMP_DIR_PATH "log";
static void initLog() {
const char* defaultLogFileNamePrefix = "taoslog";
const int32_t maxLogFileNum = 10;
tsAsyncLog = 0; static std::string logDir = TD_TMP_DIR_PATH "log";
idxDebugFlag = 143; static void initLog() {
strcpy(tsLogDir, logDir.c_str()); const char* defaultLogFileNamePrefix = "taoslog";
taosRemoveDir(tsLogDir); const int32_t maxLogFileNum = 10;
taosMkDir(tsLogDir);
tsAsyncLog = 0;
if (taosInitLog(defaultLogFileNamePrefix, maxLogFileNum) < 0) { idxDebugFlag = 143;
printf("failed to open log file in directory:%s\n", tsLogDir); strcpy(tsLogDir, logDir.c_str());
taosRemoveDir(tsLogDir);
taosMkDir(tsLogDir);
if (taosInitLog(defaultLogFileNamePrefix, maxLogFileNum) < 0) {
printf("failed to open log file in directory:%s\n", tsLogDir);
} }
} }
class IndexEnv : public ::testing::Test { class IndexEnv : public ::testing::Test {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册