/* bump pin count on currentItemData and copy to currentMarkData */
if (ItemPointerIsValid(&(scan->currentItemData)))
{
- so->hashso_mrkbuf = _hash_getbuf(rel,
- BufferGetBlockNumber(so->hashso_curbuf),
- HASH_NOLOCK);
+ IncrBufferRefCount(so->hashso_curbuf);
+ so->hashso_mrkbuf = so->hashso_curbuf;
scan->currentMarkData = scan->currentItemData;
}
/* bump pin count on currentMarkData and copy to currentItemData */
if (ItemPointerIsValid(&(scan->currentMarkData)))
{
- so->hashso_curbuf = _hash_getbuf(rel,
- BufferGetBlockNumber(so->hashso_mrkbuf),
- HASH_NOLOCK);
+ IncrBufferRefCount(so->hashso_mrkbuf);
+ so->hashso_curbuf = so->hashso_mrkbuf;
scan->currentItemData = scan->currentMarkData;
}
/* bump pin on current buffer for assignment to mark buffer */
if (ItemPointerIsValid(&(scan->currentItemData)))
{
- so->btso_mrkbuf = ReadBuffer(scan->indexRelation,
- BufferGetBlockNumber(so->btso_curbuf));
+ IncrBufferRefCount(so->btso_curbuf);
+ so->btso_mrkbuf = so->btso_curbuf;
scan->currentMarkData = scan->currentItemData;
so->mrkHeapIptr = so->curHeapIptr;
}
/* bump pin on marked buffer */
if (ItemPointerIsValid(&(scan->currentMarkData)))
{
- so->btso_curbuf = ReadBuffer(scan->indexRelation,
- BufferGetBlockNumber(so->btso_mrkbuf));
+ IncrBufferRefCount(so->btso_mrkbuf);
+ so->btso_curbuf = so->btso_mrkbuf;
scan->currentItemData = scan->currentMarkData;
so->curHeapIptr = so->mrkHeapIptr;
}