Merge pull request #27059 from taosdata/fix/TD-31307-3.0
fix: keep ETIMEDOUT error code in timewait state
This commit is contained in:
commit
01c9f94900
|
@ -242,7 +242,7 @@ int32_t taosThreadCondTimedWait(TdThreadCond *cond, TdThreadMutex *mutex, const
|
|||
return EINVAL;
|
||||
#else
|
||||
int32_t code = pthread_cond_timedwait(cond, mutex, abstime);
|
||||
if (code) {
|
||||
if (code && code != ETIMEDOUT) {
|
||||
terrno = TAOS_SYSTEM_ERROR(code);
|
||||
return terrno;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue