diff options
author | antirez <antirez@gmail.com> | 2018-04-09 11:54:44 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2018-04-09 11:54:44 +0200 |
commit | 49e098234abc2c5cc7042c931e3d611b0ae2055d (patch) | |
tree | 8bb82295918cf5e49f312109aa67e9ae04a1ab37 /src/modules | |
parent | b2868c7b9cfed0e517547768d2bb9178d409daef (diff) | |
download | redis-49e098234abc2c5cc7042c931e3d611b0ae2055d.tar.gz |
Modules API: blocked client free callback modified to get a context.
Note that this was an experimental API that can only be enabled with
REIDSMODULE_EXPERIMENTAL_API, so it is subject to change until its
promoted to stable API. Sorry for the breakage, it is trivial to
resolve btw. This change will not be back ported to Redis 4.0.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/helloblock.c | 3 | ||||
-rw-r--r-- | src/modules/hellocluster.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/helloblock.c b/src/modules/helloblock.c index c74fcd30f..cabaeff6c 100644 --- a/src/modules/helloblock.c +++ b/src/modules/helloblock.c @@ -54,7 +54,8 @@ int HelloBlock_Timeout(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) } /* Private data freeing callback for HELLO.BLOCK command. */ -void HelloBlock_FreeData(void *privdata) { +void HelloBlock_FreeData(RedisModuleCtx *ctx, void *privdata) { + REDISMODULE_NOT_USED(ctx); RedisModule_Free(privdata); } diff --git a/src/modules/hellocluster.c b/src/modules/hellocluster.c index 4cc40a17f..75d18f3e2 100644 --- a/src/modules/hellocluster.c +++ b/src/modules/hellocluster.c @@ -30,6 +30,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#define REDISMODULE_EXPERIMENTAL_API #include "../redismodule.h" #include <stdio.h> #include <stdlib.h> |