| 78 | } |
| 79 | |
| 80 | static 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 | |
| 96 | static void _index_delete_edge |
| 97 | ( |
no test coverage detected