MCPcopy Create free account
hub / github.com/RedisGears/RedisGears / RedisGearsPy_OnLoadedEvent

Function RedisGearsPy_OnLoadedEvent

plugins/python/redisgears_python.c:7061–7067  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7059}
7060
7061static void RedisGearsPy_OnLoadedEvent(RedisModuleCtx *ctx, RedisModuleEvent eid, uint64_t subevent, void *data){
7062 if(subevent == REDISMODULE_SUBEVENT_LOADING_RDB_START ||
7063 subevent == REDISMODULE_SUBEVENT_LOADING_AOF_START ||
7064 subevent == REDISMODULE_SUBEVENT_LOADING_REPL_START){
7065 RedisGearsPy_ClearAllData();
7066 }
7067}
7068
7069static int RedisGearsPy_LoadRegistrations(RedisModuleIO *rdb, int encver, int when){
7070 if(encver > REDISGEARSPY_REQ_DATATYPE_VERSION){

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected