fix: change a minor bug
This commit is contained in:
parent
47719b1028
commit
adec92b0b2
|
@ -777,8 +777,7 @@ void udfdProcessTeardownRequest(SUvUdfWork *uvUdf, SUdfRequest *request) {
|
|||
|
||||
uv_mutex_lock(&global.udfsMutex);
|
||||
udf->refCount--;
|
||||
if ((udf->refCount == 0 && !udf->resident) ||
|
||||
(udf->resident && udf->expired)) {
|
||||
if (udf->refCount == 0 && (!udf->resident || udf->expired)) {
|
||||
unloadUdf = true;
|
||||
taosHashRemove(global.udfsHash, udf->name, strlen(udf->name));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue