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

Function ApplyReset

src/execution_plan/ops/op_apply.c:94–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94static OpResult ApplyReset(OpBase *opBase) {
95 Apply *op = (Apply *)opBase;
96 op->r = NULL;
97
98 // free collected records
99 uint32_t n = array_len(op->records);
100 for(uint32_t i = 0; i < n; i++) {
101 OpBase_DeleteRecord(op->records[i]);
102 }
103 array_clear(op->records);
104
105 return OP_OK;
106}
107
108static OpBase *ApplyClone(const ExecutionPlan *plan, const OpBase *opBase) {
109 return NewApplyOp(plan);

Callers

nothing calls this directly

Calls 2

array_lenFunction · 0.85
OpBase_DeleteRecordFunction · 0.85

Tested by

no test coverage detected