fix(util):not use taos_system_error macro, otherwise, the return code check will fail.
This commit is contained in:
parent
8876b2602d
commit
6924adf1ae
|
@ -818,7 +818,7 @@ int32_t taosThreadSpinTrylock(TdThreadSpinlock *lock) {
|
||||||
int32_t code = pthread_spin_trylock((pthread_spinlock_t *)lock);
|
int32_t code = pthread_spin_trylock((pthread_spinlock_t *)lock);
|
||||||
if (code) {
|
if (code) {
|
||||||
terrno = TAOS_SYSTEM_ERROR(code);
|
terrno = TAOS_SYSTEM_ERROR(code);
|
||||||
return terrno;
|
return code;
|
||||||
}
|
}
|
||||||
return code;
|
return code;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue