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

Function MergeCreateClone

src/execution_plan/ops/op_merge_create.c:313–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313static OpBase *MergeCreateClone(const ExecutionPlan *plan, const OpBase *opBase) {
314 ASSERT(opBase->type == OPType_MERGE_CREATE);
315 OpMergeCreate *op = (OpMergeCreate *)opBase;
316 NodeCreateCtx *nodes;
317 EdgeCreateCtx *edges;
318 array_clone_with_cb(nodes, op->pending.nodes_to_create, NodeCreateCtx_Clone);
319 array_clone_with_cb(edges, op->pending.edges_to_create, EdgeCreateCtx_Clone);
320 return NewMergeCreateOp(plan, nodes, edges);
321}
322
323static void MergeCreateFree(OpBase *ctx) {
324 OpMergeCreate *op = (OpMergeCreate *)ctx;

Callers

nothing calls this directly

Calls 1

NewMergeCreateOpFunction · 0.85

Tested by

no test coverage detected