Commit 4ea3ed89 authored by Yossi Gottlieb's avatar Yossi Gottlieb
Browse files

CommandFilter API: fix UnregisterCommandFilter.

parent e2626f69
...@@ -4887,9 +4887,8 @@ int RM_UnregisterCommandFilter(RedisModuleCtx *ctx, RedisModuleCommandFilter *fi ...@@ -4887,9 +4887,8 @@ int RM_UnregisterCommandFilter(RedisModuleCtx *ctx, RedisModuleCommandFilter *fi
listDelNode(moduleCommandFilters,ln); listDelNode(moduleCommandFilters,ln);
ln = listSearchKey(ctx->module->filters,filter); ln = listSearchKey(ctx->module->filters,filter);
if (ln) { if (!ln) return REDISMODULE_ERR; /* Shouldn't happen */
listDelNode(moduleCommandFilters,ln); listDelNode(ctx->module->filters,ln);
}
return REDISMODULE_OK; return REDISMODULE_OK;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment