aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/page/bufpage.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2008-05-13 15:44:08 +0000
committerBruce Momjian <bruce@momjian.us>2008-05-13 15:44:08 +0000
commitd82a1d582cf1917d8d9807fe76bf6588091563c0 (patch)
tree00fa8b1f3523088e76831948b35232cfc822ba2a /src/backend/storage/page/bufpage.c
parenta61b2464fac452fbb849832a613ad5400ab7a7da (diff)
downloadpostgresql-d82a1d582cf1917d8d9807fe76bf6588091563c0.tar.gz
postgresql-d82a1d582cf1917d8d9807fe76bf6588091563c0.zip
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/storage/page/bufpage.c')
-rw-r--r--src/backend/storage/page/bufpage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/storage/page/bufpage.c b/src/backend/storage/page/bufpage.c
index ad1c8c3ed3f..c4af3b193fc 100644
--- a/src/backend/storage/page/bufpage.c
+++ b/src/backend/storage/page/bufpage.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/storage/page/bufpage.c,v 1.78 2008/02/10 20:39:08 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/storage/page/bufpage.c,v 1.79 2008/05/13 15:44:08 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -533,7 +533,7 @@ PageGetHeapFreeSpace(Page page)
* Since this is just a hint, we must confirm that there is
* indeed a free line pointer
*/
- for (offnum = FirstOffsetNumber; offnum <= nline; offnum++)
+ for (offnum = FirstOffsetNumber; offnum <= nline; offnum = OffsetNumberNext(offnum))
{
ItemId lp = PageGetItemId(page, offnum);
@@ -736,7 +736,7 @@ PageIndexMultiDelete(Page page, OffsetNumber *itemnos, int nitems)
totallen = 0;
nused = 0;
nextitm = 0;
- for (offnum = 1; offnum <= nline; offnum++)
+ for (offnum = FirstOffsetNumber; offnum <= nline; offnum = OffsetNumberNext(offnum))
{
lp = PageGetItemId(page, offnum);
Assert(ItemIdHasStorage(lp));