diff --git a/src/util/src/tcache.c b/src/util/src/tcache.c index eecf5100c50bfc02df137f780470fe97c2df2b1a..2a85068a95aa1944bfab9ad8f7f856775bd689de 100644 --- a/src/util/src/tcache.c +++ b/src/util/src/tcache.c @@ -611,7 +611,7 @@ void taosRemoveDataFromCache(void *handle, void **data, bool _remove) { *data = NULL; - if (remove) { + if (_remove) { #if defined LINUX pthread_rwlock_wrlock(&pObj->lock); #else