diff options
author | Bruce Momjian <bruce@momjian.us> | 2008-05-13 15:44:08 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2008-05-13 15:44:08 +0000 |
commit | d82a1d582cf1917d8d9807fe76bf6588091563c0 (patch) | |
tree | 00fa8b1f3523088e76831948b35232cfc822ba2a /src/backend/access/heap/pruneheap.c | |
parent | a61b2464fac452fbb849832a613ad5400ab7a7da (diff) |
This is the patch replace offnum++ by OffsetNumberNext, to be
consistent. OffsetNumberNext() has some casting that makes it useful.
Fujii Masao
Diffstat (limited to 'src/backend/access/heap/pruneheap.c')
-rw-r--r-- | src/backend/access/heap/pruneheap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/heap/pruneheap.c b/src/backend/access/heap/pruneheap.c index 5ee476961b3..ce3d92c6300 100644 --- a/src/backend/access/heap/pruneheap.c +++ b/src/backend/access/heap/pruneheap.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/heap/pruneheap.c,v 1.11 2008/05/12 16:06:09 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/access/heap/pruneheap.c,v 1.12 2008/05/13 15:44:08 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -792,7 +792,7 @@ heap_get_root_tuples(Page page, OffsetNumber *root_offsets) MemSet(root_offsets, 0, MaxHeapTuplesPerPage * sizeof(OffsetNumber)); maxoff = PageGetMaxOffsetNumber(page); - for (offnum = FirstOffsetNumber; offnum <= maxoff; offnum++) + for (offnum = FirstOffsetNumber; offnum <= maxoff; offnum = OffsetNumberNext(offnum)) { ItemId lp = PageGetItemId(page, offnum); HeapTupleHeader htup; |