add config

This commit is contained in:
yihaoDeng 2024-10-10 11:51:36 +08:00
parent aba70c79e1
commit 8e6a51bfe1
1 changed files with 20 additions and 20 deletions

View File

@ -402,10 +402,10 @@ int32_t tsem2_timewait(tsem2_t* sem, int64_t ms) {
ret = taosThreadCondTimedWait(&sem->cond, &sem->mutex, &ts);
if (ret != 0) {
(void)taosThreadMutexUnlock(&sem->mutex);
if (errno == ETIMEDOUT) {
if (ret == ETIMEDOUT) {
return TSDB_CODE_TIMEOUT_ERROR;
} else {
return TAOS_SYSTEM_ERROR(errno);
return TAOS_SYSTEM_ERROR(ret);
}
}
}