Unverified Commit 3fbdbf50 authored by Wen Hui's avatar Wen Hui Committed by GitHub
Browse files

document module unload error codes in comments (#9038)

parent a049f629
...@@ -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);
......
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