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

Function _CreateKeySpaceMetaKeys

src/module_event_handlers.c:215–227  ·  view source on GitHub ↗

create the meta keys for each graph in the keyspace used on RDB start event

Source from the content-addressed store, hash-verified

213// create the meta keys for each graph in the keyspace
214// used on RDB start event
215static void _CreateKeySpaceMetaKeys
216(
217 RedisModuleCtx *ctx
218) {
219 KeySpaceGraphIterator it;
220 GraphContext *gc = NULL;
221 Globals_ScanGraphs(&it);
222
223 while((gc = GraphIterator_Next(&it)) != NULL) {
224 _CreateGraphMetaKeys(ctx, gc);
225 GraphContext_DecreaseRefCount(gc);
226 }
227}
228
229// delete the meta keys for each graph in the keyspace
230// used on RDB finish (save/load/fail) event

Callers 1

_PersistenceEventHandlerFunction · 0.85

Calls 4

Globals_ScanGraphsFunction · 0.85
GraphIterator_NextFunction · 0.85
_CreateGraphMetaKeysFunction · 0.85

Tested by

no test coverage detected