add config
This commit is contained in:
parent
aba70c79e1
commit
8e6a51bfe1
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue