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

Function _IsEventPersistenceEnd

src/module_event_handlers.c:276–281  ·  view source on GitHub ↗

Checks if the event is persistence end event.

Source from the content-addressed store, hash-verified

274
275// Checks if the event is persistence end event.
276static bool _IsEventPersistenceEnd(RedisModuleEvent eid, uint64_t subevent) {
277 return eid.id == REDISMODULE_EVENT_PERSISTENCE &&
278 (subevent == REDISMODULE_SUBEVENT_PERSISTENCE_ENDED || // Save ended.
279 subevent == REDISMODULE_SUBEVENT_PERSISTENCE_FAILED // Save failed.
280 );
281}
282
283static void _ReplicationRoleChangedEventHandler
284(

Callers 1

_PersistenceEventHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected