mirror of
https://github.com/fluencelabs/redis
synced 2025-06-19 12:11:21 +00:00
Merge pull request #6161 from swilly22/redismodule-loading-ctx-flag
Extend REDISMODULE_CTX_FLAGS to indicate if redis is loading
This commit is contained in:
@ -1466,6 +1466,9 @@ int RM_GetContextFlags(RedisModuleCtx *ctx) {
|
||||
if (server.cluster_enabled)
|
||||
flags |= REDISMODULE_CTX_FLAGS_CLUSTER;
|
||||
|
||||
if (server.loading)
|
||||
flags |= REDISMODULE_CTX_FLAGS_LOADING;
|
||||
|
||||
/* Maxmemory and eviction policy */
|
||||
if (server.maxmemory > 0) {
|
||||
flags |= REDISMODULE_CTX_FLAGS_MAXMEMORY;
|
||||
|
Reference in New Issue
Block a user