diff options
Diffstat (limited to 'src/backend/access/hash/hashscan.c')
-rw-r--r-- | src/backend/access/hash/hashscan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/hash/hashscan.c b/src/backend/access/hash/hashscan.c index f4a91b5710f..87dfcd60930 100644 --- a/src/backend/access/hash/hashscan.c +++ b/src/backend/access/hash/hashscan.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/hash/hashscan.c,v 1.25 2001/07/15 22:48:15 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/hash/hashscan.c,v 1.26 2002/05/20 23:51:41 tgl Exp $ * * NOTES * Because we can be doing an index scan on a relation while we @@ -119,7 +119,7 @@ _hash_adjscans(Relation rel, ItemPointer tid) relid = RelationGetRelid(rel); for (l = HashScans; l != (HashScanList) NULL; l = l->hashsl_next) { - if (relid == l->hashsl_scan->relation->rd_id) + if (relid == l->hashsl_scan->indexRelation->rd_id) _hash_scandel(l->hashsl_scan, ItemPointerGetBlockNumber(tid), ItemPointerGetOffsetNumber(tid)); } @@ -136,7 +136,7 @@ _hash_scandel(IndexScanDesc scan, BlockNumber blkno, OffsetNumber offno) if (!_hash_scantouched(scan, blkno, offno)) return; - metabuf = _hash_getbuf(scan->relation, HASH_METAPAGE, HASH_READ); + metabuf = _hash_getbuf(scan->indexRelation, HASH_METAPAGE, HASH_READ); so = (HashScanOpaque) scan->opaque; buf = so->hashso_curbuf; |