| 139 | } |
| 140 | |
| 141 | bool OpBase_Aware |
| 142 | ( |
| 143 | OpBase *op, |
| 144 | const char *alias, |
| 145 | int *idx |
| 146 | ) { |
| 147 | rax *mapping = ExecutionPlan_GetMappings(op->plan); |
| 148 | void *rec_idx = raxFind(mapping, (unsigned char *)alias, strlen(alias)); |
| 149 | if(idx) *idx = (intptr_t)rec_idx; |
| 150 | return (rec_idx != raxNotFound); |
| 151 | } |
| 152 | |
| 153 | // collects writing operations under `op` into `write_ops`, and resets the |
| 154 | // reading ops (including `op` itself) |
no test coverage detected