CommandFilter API: fix UnregisterCommandFilter.
This commit is contained in:
parent
e2626f69ec
commit
4ea3ed896b
@ -4887,9 +4887,8 @@ int RM_UnregisterCommandFilter(RedisModuleCtx *ctx, RedisModuleCommandFilter *fi
|
||||
listDelNode(moduleCommandFilters,ln);
|
||||
|
||||
ln = listSearchKey(ctx->module->filters,filter);
|
||||
if (ln) {
|
||||
listDelNode(moduleCommandFilters,ln);
|
||||
}
|
||||
if (!ln) return REDISMODULE_ERR; /* Shouldn't happen */
|
||||
listDelNode(ctx->module->filters,ln);
|
||||
|
||||
return REDISMODULE_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user