| 1280 | |
| 1281 | |
| 1282 | static bool |
| 1283 | GetOneTupleCore(DocumentDBRumIndexState *outerScanState, |
| 1284 | IndexScanDesc scan, ScanDirection direction, |
| 1285 | IndexAmRoutine *coreRoutine) |
| 1286 | { |
| 1287 | bool result = coreRoutine->amgettuple(outerScanState->innerScan, direction); |
| 1288 | if (result) |
| 1289 | { |
| 1290 | ItemPointerCopy(&outerScanState->innerScan->xs_heaptid, &scan->xs_heaptid); |
| 1291 | scan->xs_recheck = outerScanState->innerScan->xs_recheck; |
| 1292 | scan->xs_recheckorderby = outerScanState->innerScan->xs_recheckorderby; |
| 1293 | |
| 1294 | /* Set the pointers to handle order by values */ |
| 1295 | scan->xs_orderbyvals = outerScanState->innerScan->xs_orderbyvals; |
| 1296 | scan->xs_orderbynulls = outerScanState->innerScan->xs_orderbynulls; |
| 1297 | |
| 1298 | scan->xs_itup = outerScanState->innerScan->xs_itup; |
| 1299 | scan->xs_itupdesc = outerScanState->innerScan->xs_itupdesc; |
| 1300 | } |
| 1301 | |
| 1302 | return result; |
| 1303 | } |
| 1304 | |
| 1305 | |
| 1306 | bool |
no outgoing calls
no test coverage detected