Merge pull request #29367 from taosdata/enh/TD-33262-3.0

fix: unlock and error code of tlog
This commit is contained in:
Hongze Cheng 2024-12-27 14:07:44 +08:00 committed by GitHub
commit 640a0c4c78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -673,11 +673,11 @@ static int32_t taosInitNormalLog(const char *logName, int32_t maxFileNum) {
} }
_exit: _exit:
taosUnLockLogFile(tsLogObj.logHandle->pFile);
if (code != 0) { if (code != 0) {
taosUnLockLogFile(tsLogObj.logHandle->pFile);
TAOS_UNUSED(printf("failed to init normal log file:%s at line %d, reason:%s\n", name, lino, tstrerror(code))); TAOS_UNUSED(printf("failed to init normal log file:%s at line %d, reason:%s\n", name, lino, tstrerror(code)));
} }
return 0; return code;
} }
static void taosUpdateLogNums(ELogLevel level) { static void taosUpdateLogNums(ELogLevel level) {