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

Function MergeCreate_Commit

src/execution_plan/ops/op_merge_create.c:302–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302void MergeCreate_Commit(OpBase *opBase) {
303 OpMergeCreate *op = (OpMergeCreate *)opBase;
304 op->handoff_mode = true;
305 /* Done reading, we're not going to call consume any longer
306 * there might be operations e.g. index scan that need to free
307 * index R/W lock, as such free all execution plan operation up the chain. */
308 if(opBase->childCount > 0) OpBase_PropagateReset(opBase->children[0]);
309 // Create entities.
310 CommitNewEntities(opBase, &op->pending);
311}
312
313static OpBase *MergeCreateClone(const ExecutionPlan *plan, const OpBase *opBase) {
314 ASSERT(opBase->type == OPType_MERGE_CREATE);

Callers 1

MergeConsumeFunction · 0.85

Calls 2

OpBase_PropagateResetFunction · 0.85
CommitNewEntitiesFunction · 0.85

Tested by

no test coverage detected