if (_bt_readpage(scan, dir, P_FIRSTDATAKEY(opaque)))
break;
}
+ else if (scan->parallel_scan != NULL)
+ {
+ /* allow next page be processed by parallel worker */
+ _bt_parallel_release(scan, opaque->btpo_next);
+ }
/* nope, keep going */
if (scan->parallel_scan != NULL)
if (_bt_readpage(scan, dir, PageGetMaxOffsetNumber(page)))
break;
}
+ else if (scan->parallel_scan != NULL)
+ {
+ /* allow next page be processed by parallel worker */
+ _bt_parallel_release(scan, BufferGetBlockNumber(so->currPos.buf));
+ }
/*
* For parallel scans, get the last page scanned as it is quite