summaryrefslogtreecommitdiff
path: root/src/include/cell.i
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@wiredtiger.com>2012-01-01 11:38:39 +0000
committerKeith Bostic <keith.bostic@wiredtiger.com>2012-01-01 11:38:39 +0000
commitb15486d66c545620088416a244d9fb9692f53cdb (patch)
tree64660fda17b6d823a7b34edf4eb1deb809a8c084 /src/include/cell.i
parent8d63543bdabd2db901ffab84a3258c797cc4702f (diff)
downloadmongo-b15486d66c545620088416a244d9fb9692f53cdb.tar.gz
Split the WT_PAGE_DISK structure into two parts: the btree page header
(WT_PAGE_HEADER) and the block-manager's header (WT_BLOCK_HEADER).
Diffstat (limited to 'src/include/cell.i')
-rw-r--r--src/include/cell.i5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/cell.i b/src/include/cell.i
index 3789ebb117d..df29e195540 100644
--- a/src/include/cell.i
+++ b/src/include/cell.i
@@ -111,8 +111,9 @@ struct __wt_cell_unpack {
* WT_CELL_FOREACH --
* Walk the cells on a page.
*/
-#define WT_CELL_FOREACH(dsk, cell, unpack, i) \
- for ((cell) = WT_PAGE_DISK_BYTE(dsk), (i) = (dsk)->u.entries; \
+#define WT_CELL_FOREACH(btree, dsk, cell, unpack, i) \
+ for ((cell) = \
+ WT_PAGE_HEADER_BYTE(btree, dsk), (i) = (dsk)->u.entries; \
(i) > 0; \
(cell) = (WT_CELL *)((uint8_t *)(cell) + (unpack)->len), --(i))