summaryrefslogtreecommitdiff
path: root/src/include/verify_build.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/verify_build.h')
-rw-r--r--src/include/verify_build.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/verify_build.h b/src/include/verify_build.h
index 57189b5c2b2..3973f786a90 100644
--- a/src/include/verify_build.h
+++ b/src/include/verify_build.h
@@ -52,7 +52,15 @@ __wt_verify_build(void)
/* Check specific structures weren't padded. */
WT_SIZE_CHECK(WT_BLOCK_DESC, WT_BLOCK_DESC_SIZE);
WT_SIZE_CHECK(WT_REF, WT_REF_SIZE);
- WT_SIZE_CHECK(WT_UPDATE, WT_UPDATE_SIZE);
+
+ /*
+ * WT_UPDATE is special: we arrange fields to avoid padding within the
+ * structure but it could be padded at the end depending on the
+ * timestamp size. Further check that the data field in the update
+ * structure is where we expect it.
+ */
+ WT_SIZE_CHECK(WT_UPDATE, WT_ALIGN(WT_UPDATE_SIZE, 8));
+ WT_STATIC_ASSERT(offsetof(WT_UPDATE, data) == WT_UPDATE_SIZE);
/* Check specific structures were padded. */
#define WT_PADDING_CHECK(s) \