fix(util):not use taos_system_error macro, otherwise, the return code check will fail.

This commit is contained in:
Haojun Liao 2024-07-27 14:56:30 +08:00
parent 8876b2602d
commit 6924adf1ae
1 changed files with 7 additions and 7 deletions

View File

@ -818,7 +818,7 @@ int32_t taosThreadSpinTrylock(TdThreadSpinlock *lock) {
int32_t code = pthread_spin_trylock((pthread_spinlock_t *)lock);
if (code) {
terrno = TAOS_SYSTEM_ERROR(code);
return terrno;
return code;
}
return code;
#endif