Modules: allow to execute RM_Call() from the module init function.
This commit is contained in:
parent
d7a87d0ea4
commit
096592506e
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user