summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-04-09 11:54:44 +0200
committerantirez <antirez@gmail.com>2018-04-09 11:54:44 +0200
commit49e098234abc2c5cc7042c931e3d611b0ae2055d (patch)
tree8bb82295918cf5e49f312109aa67e9ae04a1ab37 /src/modules
parentb2868c7b9cfed0e517547768d2bb9178d409daef (diff)
downloadredis-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.c3
-rw-r--r--src/modules/hellocluster.c1
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>