summaryrefslogtreecommitdiff
path: root/src/backend/access/heap/hio.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1999-08-02 05:57:07 +0000
committerMarc G. Fournier <scrappy@hub.org>1999-08-02 05:57:07 +0000
commit10ace1fac8d9f2aa887a1095340e218430928fce (patch)
tree9d6bb091bfbf0b16bb7ad29e5c042de12ee4b678 /src/backend/access/heap/hio.c
parent9a8aeb23a19ee6833480d4c12719d9fd26ad8571 (diff)
Another mass of them... just #include file changes and/or DOUBLEALIGN->MAXALIGN
Diffstat (limited to 'src/backend/access/heap/hio.c')
-rw-r--r--src/backend/access/heap/hio.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/backend/access/heap/hio.c b/src/backend/access/heap/hio.c
index c71b71e6e1b..c6f0ef6f887 100644
--- a/src/backend/access/heap/hio.c
+++ b/src/backend/access/heap/hio.c
@@ -7,19 +7,15 @@
*
*
* IDENTIFICATION
- * $Id: hio.c,v 1.22 1999/07/03 01:56:16 momjian Exp $
+ * $Id: hio.c,v 1.22.2.1 1999/08/02 05:56:37 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
-#include <postgres.h>
+#include "postgres.h"
-#include <storage/bufpage.h>
-#include <access/hio.h>
-#include <access/htup.h>
-#include <access/heapam.h>
-#include <storage/bufmgr.h>
-#include <utils/memutils.h>
+#include "access/heapam.h"
+#include "access/hio.h"
/*
* amputunique - place tuple at tid
@@ -54,7 +50,7 @@ RelationPutHeapTuple(Relation relation,
IncrHeapAccessStat(global_RelationPutHeapTuple);
pageHeader = (Page) BufferGetPage(buffer);
- len = (unsigned) DOUBLEALIGN(tuple->t_len); /* be conservative */
+ len = (unsigned) MAXALIGN(tuple->t_len); /* be conservative */
Assert((int) len <= PageGetFreeSpace(pageHeader));
offnum = PageAddItem((Page) pageHeader, (Item) tuple->t_data,
@@ -147,7 +143,7 @@ RelationPutHeapTupleAtEnd(Relation relation, HeapTuple tuple)
LockBuffer(buffer, BUFFER_LOCK_EXCLUSIVE);
pageHeader = (Page) BufferGetPage(buffer);
- len = (unsigned) DOUBLEALIGN(tuple->t_len); /* be conservative */
+ len = (unsigned) MAXALIGN(tuple->t_len); /* be conservative */
/*
* Note that this is true if the above returned a bogus page, which it