| 19 | *(UndoOp*)DataBlock_AllocateItem((log), NULL) = op; |
| 20 | |
| 21 | static void _index_node |
| 22 | ( |
| 23 | QueryCtx *ctx, |
| 24 | Node *n |
| 25 | ) { |
| 26 | uint label_count; |
| 27 | NODE_GET_LABELS(ctx->gc->g, n, label_count); |
| 28 | for(uint j = 0; j < label_count; j++) { |
| 29 | Schema *s = GraphContext_GetSchemaByID(ctx->gc, labels[j], SCHEMA_NODE); |
| 30 | ASSERT(s); |
| 31 | |
| 32 | if(Schema_HasIndices(s)) Schema_AddNodeToIndices(s, n); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | static void _index_node_with_labels |
| 37 | ( |
no test coverage detected