Merge branch 'fix/TD-23089-3.0C' of https://github.com/taosdata/TDengine into fix/TD-23089-3.0C

This commit is contained in:
kailixu 2023-09-21 10:17:11 +08:00
commit 70704ee906
1 changed files with 2 additions and 6 deletions

View File

@ -235,9 +235,7 @@ int32_t taosThreadMutexLock(TdThreadMutex *mutex) {
return 0;
#else
THREAD_PTR_CHECK(mutex)
int result = pthread_mutex_lock(mutex);
assert(result == 0);
return result;
return pthread_mutex_lock(mutex);
#endif
}
@ -261,9 +259,7 @@ int32_t taosThreadMutexUnlock(TdThreadMutex *mutex) {
return 0;
#else
THREAD_PTR_CHECK(mutex)
int result = pthread_mutex_unlock(mutex);
assert(result == 0);
return result;
return pthread_mutex_unlock(mutex);
#endif
}