Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3fbdbf50
Unverified
Commit
3fbdbf50
authored
Jun 03, 2021
by
Wen Hui
Committed by
GitHub
Jun 03, 2021
Browse files
document module unload error codes in comments (#9038)
parent
a049f629
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
3fbdbf50
...
@@ -8590,7 +8590,10 @@ int moduleLoad(const char *path, void **module_argv, int module_argc) {
...
@@ -8590,7 +8590,10 @@ int moduleLoad(const char *path, void **module_argv, int module_argc) {
* to the following values depending on the type of error:
* to the following values depending on the type of error:
*
*
* * ENONET: No such module having the specified name.
* * ENONET: No such module having the specified name.
* * EBUSY: The module exports a new data type and can only be reloaded. */
* * EBUSY: The module exports a new data type and can only be reloaded.
* * EPERM: The module exports APIs which are used by other module.
* * EAGAIN: The module has blocked clients.
* * ECANCELED: Unload module error. */
int
moduleUnload
(
sds
name
)
{
int
moduleUnload
(
sds
name
)
{
struct
RedisModule
*
module
=
dictFetchValue
(
modules
,
name
);
struct
RedisModule
*
module
=
dictFetchValue
(
modules
,
name
);
...
...
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