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

Function _ClearKeySpaceMetaKeys

src/module_event_handlers.c:232–245  ·  view source on GitHub ↗

delete the meta keys for each graph in the keyspace used on RDB finish (save/load/fail) event the decode flag represent if the graph is after encodeing or decodeing

Source from the content-addressed store, hash-verified

230// used on RDB finish (save/load/fail) event
231// the decode flag represent if the graph is after encodeing or decodeing
232static void _ClearKeySpaceMetaKeys
233(
234 RedisModuleCtx *ctx,
235 bool decode
236) {
237 KeySpaceGraphIterator it;
238 GraphContext *gc = NULL;
239 Globals_ScanGraphs(&it);
240
241 while((gc = GraphIterator_Next(&it)) != NULL) {
242 _DeleteGraphMetaKeys(ctx, gc, decode);
243 GraphContext_DecreaseRefCount(gc);
244 }
245}
246
247static void _FlushDBHandler
248(

Callers 2

_PersistenceEventHandlerFunction · 0.85

Calls 4

Globals_ScanGraphsFunction · 0.85
GraphIterator_NextFunction · 0.85
_DeleteGraphMetaKeysFunction · 0.85

Tested by

no test coverage detected