| 7059 | } |
| 7060 | |
| 7061 | static 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 | |
| 7069 | static int RedisGearsPy_LoadRegistrations(RedisModuleIO *rdb, int encver, int when){ |
| 7070 | if(encver > REDISGEARSPY_REQ_DATATYPE_VERSION){ |
nothing calls this directly
no test coverage detected