Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8d38ef20
Commit
8d38ef20
authored
Mar 21, 2019
by
Yossi Gottlieb
Committed by
antirez
May 13, 2019
Browse files
CommandFilter API: fix UnregisterCommandFilter.
parent
9b7009b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
8d38ef20
...
@@ -4889,9 +4889,8 @@ int RM_UnregisterCommandFilter(RedisModuleCtx *ctx, RedisModuleCommandFilter *fi
...
@@ -4889,9 +4889,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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment