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

Function _index_delete_node

src/undo_log/undo_log.c:80–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static void _index_delete_node
81(
82 QueryCtx *ctx,
83 Node *n
84) {
85 uint label_count;
86 NODE_GET_LABELS(ctx->gc->g, n, label_count);
87 for(uint j = 0; j < label_count; j++) {
88 Schema *s = GraphContext_GetSchemaByID(ctx->gc, labels[j], SCHEMA_NODE);
89 ASSERT(s);
90
91 // update any indices this entity is represented in
92 Schema_RemoveNodeFromIndices(s, n);
93 }
94}
95
96static void _index_delete_edge
97(

Callers 1

Calls 2

Tested by

no test coverage detected