~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to src/backend/access/hash/hashsearch.c

  • Committer: Bazaar Package Importer
  • Author(s): Ubuntu Archive Backport
  • Date: 2009-11-09 13:46:16 UTC
  • mfrom: (5.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091109134616-ae14l9tr3g7p2t9y
Tags: 8.4.1-1~hardy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *        $PostgreSQL: pgsql/src/backend/access/hash/hashsearch.c,v 1.56 2009/05/05 19:36:32 tgl Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/access/hash/hashsearch.c,v 1.57 2009/06/11 14:48:53 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
312
312
                                for (;;)
313
313
                                {
314
314
                                        /*
315
 
                                         * check if we're still in the range of items with
316
 
                                         * the target hash key
 
315
                                         * check if we're still in the range of items with the
 
316
                                         * target hash key
317
317
                                         */
318
318
                                        if (offnum <= maxoff)
319
319
                                        {
320
320
                                                Assert(offnum >= FirstOffsetNumber);
321
321
                                                itup = (IndexTuple) PageGetItem(page, PageGetItemId(page, offnum));
322
322
                                                if (so->hashso_sk_hash == _hash_get_indextuple_hashkey(itup))
323
 
                                                        break;                          /* yes, so exit for-loop */
 
323
                                                        break;          /* yes, so exit for-loop */
324
324
                                        }
325
325
 
326
326
                                        /*
353
353
                                for (;;)
354
354
                                {
355
355
                                        /*
356
 
                                         * check if we're still in the range of items with
357
 
                                         * the target hash key
 
356
                                         * check if we're still in the range of items with the
 
357
                                         * target hash key
358
358
                                         */
359
359
                                        if (offnum >= FirstOffsetNumber)
360
360
                                        {
361
361
                                                Assert(offnum <= maxoff);
362
362
                                                itup = (IndexTuple) PageGetItem(page, PageGetItemId(page, offnum));
363
363
                                                if (so->hashso_sk_hash == _hash_get_indextuple_hashkey(itup))
364
 
                                                        break;                          /* yes, so exit for-loop */
 
364
                                                        break;          /* yes, so exit for-loop */
365
365
                                        }
366
366
 
367
367
                                        /*