Modules: allow to execute RM_Call() from the module init function.
This commit is contained in:
parent
11e6e5dd85
commit
c600118cfb
@ -6985,6 +6985,8 @@ int moduleLoad(const char *path, void **module_argv, int module_argc) {
|
||||
int (*onload)(void *, void **, int);
|
||||
void *handle;
|
||||
RedisModuleCtx ctx = REDISMODULE_CTX_INIT;
|
||||
ctx.client = moduleFreeContextReusedClient;
|
||||
selectDb(ctx.client, 0);
|
||||
|
||||
struct stat st;
|
||||
if (stat(path, &st) == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user