aboutsummaryrefslogtreecommitdiff
path: root/db2/include/db_page.h
diff options
context:
space:
mode:
Diffstat (limited to 'db2/include/db_page.h')
-rw-r--r--db2/include/db_page.h56
1 files changed, 3 insertions, 53 deletions
diff --git a/db2/include/db_page.h b/db2/include/db_page.h
index e1846cbbbd..5c9ca674f1 100644
--- a/db2/include/db_page.h
+++ b/db2/include/db_page.h
@@ -4,7 +4,7 @@
* Copyright (c) 1996, 1997, 1998
* Sleepycat Software. All rights reserved.
*
- * @(#)db_page.h 10.15 (Sleepycat) 5/1/98
+ * @(#)db_page.h 10.18 (Sleepycat) 12/2/98
*/
#ifndef _DB_PAGE_H_
@@ -43,14 +43,6 @@
/*
* Btree metadata page layout:
- *
- * +-----------------------------------+
- * | lsn | pgno | magic |
- * +-----------------------------------+
- * | version | pagesize | free |
- * +-----------------------------------+
- * | flags | unused ... |
- * +-----------------------------------+
*/
typedef struct _btmeta {
DB_LSN lsn; /* 00-07: LSN. */
@@ -72,10 +64,6 @@ typedef struct _btmeta {
u_int32_t re_pad; /* 44-47: Recno: fixed-length record pad. */
/* 48-67: Unique file ID. */
u_int8_t uid[DB_FILE_ID_LEN];
-
- u_int32_t spare[13]; /* 68-123: Save some room for growth. */
-
- DB_BTREE_LSTAT stat; /* 124-163: Statistics. */
} BTMETA;
/************************************************************************
@@ -84,18 +72,6 @@ typedef struct _btmeta {
/*
* Hash metadata page layout:
- *
- * +-----------------------------------+
- * | lsn | magic | version |
- * +-----------------------------------+
- * | pagesize | ovfl_point| last_freed|
- * +-----------------------------------+
- * | max_bucket| high_mask | low_mask |
- * +-----------------------------------+
- * | ffactor | nelem | charkey |
- * +-----------------------------------+
- * | spares[32]| flags | unused |
- * +-----------------------------------+
*/
/* Hash Table Information */
typedef struct hashhdr { /* Disk resident portion */
@@ -359,10 +335,6 @@ typedef struct _hkeydata {
/*
* The third type is the H_OFFPAGE, represented by the HOFFPAGE structure:
- *
- * +-----------------------------------+
- * | type | pgno_t | total len |
- * +-----------------------------------+
*/
typedef struct _hoffpage {
u_int8_t type; /* 00: Page type and delete flag. */
@@ -383,10 +355,6 @@ typedef struct _hoffpage {
/*
* The fourth type is H_OFFDUP represented by the HOFFDUP structure:
- *
- * +-----------------------+
- * | type | pgno_t |
- * +-----------------------+
*/
typedef struct _hoffdup {
u_int8_t type; /* 00: Page type and delete flag. */
@@ -431,10 +399,6 @@ typedef struct _hoffdup {
/*
* The first type is B_KEYDATA, represented by the BKEYDATA structure:
- *
- * +-----------------------------------+
- * | length | type | key/data |
- * +-----------------------------------+
*/
typedef struct _bkeydata {
db_indx_t len; /* 00-01: Key/data item length. */
@@ -457,13 +421,7 @@ typedef struct _bkeydata {
/*
* The second and third types are B_DUPLICATE and B_OVERFLOW, represented
- * by the BOVERFLOW structure:
- *
- * +-----------------------------------+
- * | total len | type | unused |
- * +-----------------------------------+
- * | nxt: page | nxt: off | nxt: len |
- * +-----------------------------------+
+ * by the BOVERFLOW structure.
*/
typedef struct _boverflow {
db_indx_t unused1; /* 00-01: Padding, unused. */
@@ -501,10 +459,6 @@ typedef struct _boverflow {
/*
* Btree internal entry.
- *
- * +-----------------------------------+
- * | leaf pgno | type | data ... |
- * +-----------------------------------+
*/
typedef struct _binternal {
db_indx_t len; /* 00-01: Key/data item length. */
@@ -535,12 +489,8 @@ typedef struct _binternal {
/*
* The recno internal entry.
*
- * +-----------------------+
- * | leaf pgno | # of recs |
- * +-----------------------+
- *
* XXX
- * Why not fold this into the db_indx_t structure, it's fixed length.
+ * Why not fold this into the db_indx_t structure, it's fixed length?
*/
typedef struct _rinternal {
db_pgno_t pgno; /* 00-03: Page number of referenced page. */