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

Function LimitClone

src/execution_plan/ops/op_limit.c:76–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static inline OpBase *LimitClone(const ExecutionPlan *plan, const OpBase *opBase) {
77 ASSERT(opBase->type == OPType_LIMIT);
78
79 OpLimit *op = (OpLimit *)opBase;
80 /* Clone the limit expression stored on the ExecutionPlan,
81 * as we don't want to modify the templated ExecutionPlan
82 * (which may occur if this expression is a parameter). */
83 AR_ExpNode *limit_exp = AR_EXP_Clone(op->limit_exp);
84 return NewLimitOp(plan, limit_exp);
85}
86
87static void LimitFree(OpBase *opBase) {
88 OpLimit *op = (OpLimit *)opBase;

Callers

nothing calls this directly

Calls 2

AR_EXP_CloneFunction · 0.85
NewLimitOpFunction · 0.85

Tested by

no test coverage detected