|
|
|
@ -8,7 +8,7 @@ |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
* IDENTIFICATION |
|
|
|
|
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashsearch.c,v 1.25 2001/01/24 19:42:47 momjian Exp $ |
|
|
|
|
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashsearch.c,v 1.26 2001/03/23 04:49:51 momjian Exp $ |
|
|
|
|
* |
|
|
|
|
*------------------------------------------------------------------------- |
|
|
|
|
*/ |
|
|
|
@ -334,9 +334,11 @@ _hash_step(IndexScanDesc scan, Buffer *bufP, ScanDirection dir, Buffer metabuf) |
|
|
|
|
while (offnum > maxoff) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* either this page is empty (maxoff == |
|
|
|
|
* InvalidOffsetNumber) or we ran off the end. |
|
|
|
|
/*--------
|
|
|
|
|
* either this page is empty |
|
|
|
|
* (maxoff == InvalidOffsetNumber) |
|
|
|
|
* or we ran off the end. |
|
|
|
|
*-------- |
|
|
|
|
*/ |
|
|
|
|
_hash_readnext(rel, &buf, &page, &opaque); |
|
|
|
|
if (BufferIsInvalid(buf)) |
|
|
|
@ -382,9 +384,11 @@ _hash_step(IndexScanDesc scan, Buffer *bufP, ScanDirection dir, Buffer metabuf) |
|
|
|
|
while (offnum < FirstOffsetNumber) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* either this page is empty (offnum == |
|
|
|
|
* InvalidOffsetNumber) or we ran off the end. |
|
|
|
|
/*---------
|
|
|
|
|
* either this page is empty |
|
|
|
|
* (offnum == InvalidOffsetNumber) |
|
|
|
|
* or we ran off the end. |
|
|
|
|
*--------- |
|
|
|
|
*/ |
|
|
|
|
_hash_readprev(rel, &buf, &page, &opaque); |
|
|
|
|
if (BufferIsInvalid(buf)) |
|
|
|
|