Checks if the event is persistence start event.
| 264 | |
| 265 | // Checks if the event is persistence start event. |
| 266 | static bool _IsEventPersistenceStart(RedisModuleEvent eid, uint64_t subevent) { |
| 267 | return eid.id == REDISMODULE_EVENT_PERSISTENCE && |
| 268 | (subevent == REDISMODULE_SUBEVENT_PERSISTENCE_RDB_START || // Normal RDB. |
| 269 | subevent == REDISMODULE_SUBEVENT_PERSISTENCE_AOF_START || // Preamble AOF. |
| 270 | subevent == REDISMODULE_SUBEVENT_PERSISTENCE_SYNC_RDB_START || // SAVE and DEBUG RELOAD. |
| 271 | subevent == REDISMODULE_SUBEVENT_PERSISTENCE_SYNC_AOF_START // |
| 272 | ); |
| 273 | } |
| 274 | |
| 275 | // Checks if the event is persistence end event. |
| 276 | static bool _IsEventPersistenceEnd(RedisModuleEvent eid, uint64_t subevent) { |
no outgoing calls
no test coverage detected