Skip to content

Commit c7b1e1f

Browse files
meiravgriraz-mon
andauthored
Add sst-based rdb operation context-flag (#83)
Co-authored-by: Raz Monsonego <74051729+raz-mon@users.noreply.github.com>
1 parent 67afdb5 commit c7b1e1f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

redismodule-rlec.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ REDISMODULE_API int (*RedisModule_IsKeyInRam)(RedisModuleCtx *ctx, RedisModuleSt
4949
REDISMODULE_API int (*RedisModule_EnablePostponeClients)(void) REDISMODULE_ATTR;
5050
REDISMODULE_API int (*RedisModule_DisablePostponeClients)(void) REDISMODULE_ATTR;
5151

52+
/* Flags */
53+
54+
/* Redis is out of ram according to the max-ram flag. */
55+
#define REDISMODULE_CTX_FLAGS_OOR (1<<30)
56+
/* Redis is currently loading, saving or preparing a partial RDB file that goes along with sst files. */
57+
#define REDISMODULE_CTX_FLAGS_SST_RDB (1<<29)
5258
//---------------------------------------------------------------------------------------------
5359

5460
/* Keyspace changes notification classes. Every class is associated with a

0 commit comments

Comments
 (0)