summaryrefslogtreecommitdiff
path: root/src/redismodule.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-04-01 16:20:57 +0200
committerantirez <antirez@gmail.com>2018-04-01 16:20:57 +0200
commit27f9c8108c1c6a803ad8e386d655c7065feda394 (patch)
tree60f0a60dc8aa7a8ee620c50a6e628fd09ccf37b3 /src/redismodule.h
parent19c42c901b71e5ce34bc78834a91ea0c49018fc6 (diff)
downloadredis-27f9c8108c1c6a803ad8e386d655c7065feda394.tar.gz
Modules Cluster API: GetMyClusterID() added.
Diffstat (limited to 'src/redismodule.h')
-rw-r--r--src/redismodule.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/redismodule.h b/src/redismodule.h
index 47fc6668a..e16031a4f 100644
--- a/src/redismodule.h
+++ b/src/redismodule.h
@@ -276,6 +276,7 @@ void REDISMODULE_API_FUNC(RedisModule_FreeClusterNodesList)(char **ids);
RedisModuleTimerID REDISMODULE_API_FUNC(RedisModule_CreateTimer)(RedisModuleCtx *ctx, mstime_t period, RedisModuleTimerProc callback, void *data);
int REDISMODULE_API_FUNC(RedisModule_StopTimer)(RedisModuleCtx *ctx, RedisModuleTimerID id, void **data);
int REDISMODULE_API_FUNC(RedisModule_GetTimerInfo)(RedisModuleCtx *ctx, RedisModuleTimerID id, uint64_t *remaining, void **data);
+const char *REDISMODULE_API_FUNC(RM_GetMyClusterID)(void);
/* Experimental APIs */
#ifdef REDISMODULE_EXPERIMENTAL_API
@@ -407,6 +408,7 @@ static int RedisModule_Init(RedisModuleCtx *ctx, const char *name, int ver, int
REDISMODULE_GET_API(CreateTimer);
REDISMODULE_GET_API(StopTimer);
REDISMODULE_GET_API(GetTimerInfo);
+ REDISMODULE_GET_API(GetMyClusterID);
#ifdef REDISMODULE_EXPERIMENTAL_API
REDISMODULE_GET_API(GetThreadSafeContext);
@@ -420,7 +422,6 @@ static int RedisModule_Init(RedisModuleCtx *ctx, const char *name, int ver, int
REDISMODULE_GET_API(GetBlockedClientPrivateData);
REDISMODULE_GET_API(AbortBlock);
REDISMODULE_GET_API(SubscribeToKeyspaceEvents);
-
#endif
if (RedisModule_IsModuleNameBusy && RedisModule_IsModuleNameBusy(name)) return REDISMODULE_ERR;