summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBruce Momjian2005-09-22 16:46:00 +0000
committerBruce Momjian2005-09-22 16:46:00 +0000
commit4f915cd3770738feb31a36ee57706052480d627a (patch)
treecd94309bbf342a24f27dda41e1529031338e84fa /src/include
parent62da04f8e3957e6a1b17a087db8d2f443cecbc57 (diff)
This patch cleans up the access to members of ItemIdData.
It uses existing macros instead of touching directly. ITAGAKI Takahiro
Diffstat (limited to 'src/include')
-rw-r--r--src/include/storage/bufpage.h6
-rw-r--r--src/include/storage/itemid.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/include/storage/bufpage.h b/src/include/storage/bufpage.h
index c02bb4dc875..9057c6dcd97 100644
--- a/src/include/storage/bufpage.h
+++ b/src/include/storage/bufpage.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/storage/bufpage.h,v 1.65 2005/04/28 21:47:18 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/storage/bufpage.h,v 1.66 2005/09/22 16:46:00 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -258,8 +258,8 @@ typedef PageHeaderData *PageHeader;
#define PageGetItem(page, itemId) \
( \
AssertMacro(PageIsValid(page)), \
- AssertMacro((itemId)->lp_flags & LP_USED), \
- (Item)(((char *)(page)) + (itemId)->lp_off) \
+ AssertMacro(ItemIdIsUsed(itemId)), \
+ (Item)(((char *)(page)) + ItemIdGetOffset(itemId)) \
)
/*
diff --git a/src/include/storage/itemid.h b/src/include/storage/itemid.h
index edff2db194a..ec0dcaa90cd 100644
--- a/src/include/storage/itemid.h
+++ b/src/include/storage/itemid.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/storage/itemid.h,v 1.24 2004/12/31 22:03:42 pgsql Exp $
+ * $PostgreSQL: pgsql/src/include/storage/itemid.h,v 1.25 2005/09/22 16:46:00 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -38,7 +38,7 @@ typedef ItemIdData *ItemId;
/*
* This bit may be passed to PageAddItem together with
- * LP_USED & LP_DELETED bits to specify overwrite mode
+ * LP_USED & LP_DELETE bits to specify overwrite mode
*/
#define OverwritePageMode 0x10