minor changes

This commit is contained in:
Shengliang Guan 2022-02-27 11:21:46 +08:00
parent 15b18f4ce9
commit b7537c700a
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ int8_t tscEmbeddedInUtil = 0;
int32_t tsLogKeepDays = 0;
bool tsAsyncLog = true;
bool tsLogInited = false;
int8_t tsLogInited = 0;
int64_t asyncLogLostLines = 0;
int32_t writeInterval = LOG_DEFAULT_INTERVAL;
@ -115,7 +115,7 @@ static int32_t taosStartLog() {
}
int32_t taosInitLog(const char *logName, int maxFiles) {
if (tsLogInited) return 0;
if (atomic_val_compare_exchange_8(&tsLogInited, 0, 1) != 0) return 0;
osUpdate();
char fullName[PATH_MAX] = {0};