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

Function CreateClone

src/execution_plan/ops/op_create.c:199–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199static OpBase *CreateClone(const ExecutionPlan *plan, const OpBase *opBase) {
200 ASSERT(opBase->type == OPType_CREATE);
201 OpCreate *op = (OpCreate *)opBase;
202 NodeCreateCtx *nodes;
203 EdgeCreateCtx *edges;
204 array_clone_with_cb(nodes, op->pending.nodes_to_create, NodeCreateCtx_Clone);
205 array_clone_with_cb(edges, op->pending.edges_to_create, EdgeCreateCtx_Clone);
206 return NewCreateOp(plan, nodes, edges);
207}
208
209static void CreateFree(OpBase *ctx) {
210 OpCreate *op = (OpCreate *)ctx;

Callers

nothing calls this directly

Calls 1

NewCreateOpFunction · 0.85

Tested by

no test coverage detected