summaryrefslogtreecommitdiff
path: root/src/include/verify_build.h
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@wiredtiger.com>2011-12-28 13:58:07 +0000
committerKeith Bostic <keith.bostic@wiredtiger.com>2011-12-28 13:58:07 +0000
commitca94a02725e893fef4af78773fbd523d08a63dbf (patch)
tree6959c8649abaf121a05e9114315d00ac35b75ed3 /src/include/verify_build.h
parent7b61cfa4e7c275ac3d40117db45e16cabc4b688d (diff)
downloadmongo-ca94a02725e893fef4af78773fbd523d08a63dbf.tar.gz
Switch from uint32_t/uint32_t addr/size pairs to off_t/uint32_t
file-offset/size pairs. Divide the size by the allocation unit as we do the offset (previously we only reduced the addr of the addr/size pair, but the size is divisible by the allocation unit, too. Change verbose messages to output a session and file name if one's available, don't output the verbose flag's name any more, the session name usually gives the same information.
Diffstat (limited to 'src/include/verify_build.h')
-rw-r--r--src/include/verify_build.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/verify_build.h b/src/include/verify_build.h
index 9d59dd6e440..93a81e492a6 100644
--- a/src/include/verify_build.h
+++ b/src/include/verify_build.h
@@ -47,7 +47,7 @@ __wt_verify_build(void)
* The compiler had better not have padded our structures -- make sure
* the page header structure is exactly what we expect.
*/
- SIZE_CHECK(WT_BTREE_DESC, WT_BTREE_DESC_SIZE);
+ SIZE_CHECK(WT_BLOCK_DESC, WT_BLOCK_DESC_SIZE);
/*
* The page header is special: the compiler will pad it to a multiple
@@ -68,6 +68,12 @@ __wt_verify_build(void)
* check, just to be sure.
*/
STATIC_ASSERT(sizeof(size_t) >= sizeof(uint32_t));
+
+ /*
+ * We require an off_t fit into an 8B chunk because 8B is the largest
+ * integral value we can encode.
+ */
+ STATIC_ASSERT(sizeof(off_t) <= sizeof(uint64_t));
}
#undef ALIGN_CHECK