Commit 09659250 authored by antirez's avatar antirez
Browse files

Modules: allow to execute RM_Call() from the module init function.

parent d7a87d0e
...@@ -6985,6 +6985,8 @@ int moduleLoad(const char *path, void **module_argv, int module_argc) { ...@@ -6985,6 +6985,8 @@ int moduleLoad(const char *path, void **module_argv, int module_argc) {
int (*onload)(void *, void **, int); int (*onload)(void *, void **, int);
void *handle; void *handle;
RedisModuleCtx ctx = REDISMODULE_CTX_INIT; RedisModuleCtx ctx = REDISMODULE_CTX_INIT;
ctx.client = moduleFreeContextReusedClient;
selectDb(ctx.client, 0);
struct stat st; struct stat st;
if (stat(path, &st) == 0) if (stat(path, &st) == 0)
......
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