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

Function _InitializeUpdates

src/execution_plan/ops/op_merge.c:83–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83static void _InitializeUpdates
84(
85 OpMerge *op,
86 rax *updates,
87 raxIterator *it
88) {
89 // if we have ON MATCH / ON CREATE directives
90 // set the appropriate record IDs of entities to be updated
91 raxStart(it, updates);
92 raxSeek(it, "^", NULL, 0);
93 // iterate over all expressions
94 while(raxNext(it)) {
95 EntityUpdateEvalCtx *ctx = it->data;
96 // set the record index for every entity modified by this operation
97 ctx->record_idx = OpBase_Modifies((OpBase *)op, ctx->alias);
98 }
99
100}
101
102// free node and edge pending updates
103static inline void _free_pending_updates

Callers 1

NewMergeOpFunction · 0.85

Calls 1

OpBase_ModifiesFunction · 0.85

Tested by

no test coverage detected