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

Function ExecutionPlan_BorrowRecord

src/execution_plan/execution_plan.c:388–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388Record ExecutionPlan_BorrowRecord(ExecutionPlan *plan) {
389 rax *mapping = ExecutionPlan_GetMappings(plan);
390 ASSERT(plan->record_pool);
391
392 // Get a Record from the pool and set its owner and mapping.
393 Record r = ObjectPool_NewItem(plan->record_pool);
394 r->owner = plan;
395 r->mapping = mapping;
396 return r;
397}
398
399void ExecutionPlan_ReturnRecord(const ExecutionPlan *plan, Record r) {
400 ASSERT(plan && r);

Callers 3

OpBase_CreateRecordFunction · 0.85
OpBase_CloneRecordFunction · 0.85
OpBase_DeepCloneRecordFunction · 0.85

Calls 2

ObjectPool_NewItemFunction · 0.85

Tested by

no test coverage detected