MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _IsEventPersistenceStart

Function _IsEventPersistenceStart

src/module_event_handlers.c:266–273  ·  view source on GitHub ↗

Checks if the event is persistence start event.

Source from the content-addressed store, hash-verified

264
265// Checks if the event is persistence start event.
266static 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.
276static bool _IsEventPersistenceEnd(RedisModuleEvent eid, uint64_t subevent) {

Callers 1

_PersistenceEventHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected