summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--storage/innobase/include/page0types.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/storage/innobase/include/page0types.h b/storage/innobase/include/page0types.h
index d18cea66b30..885d2290f7c 100644
--- a/storage/innobase/include/page0types.h
+++ b/storage/innobase/include/page0types.h
@@ -113,9 +113,10 @@ struct page_zip_des_t
#endif /* UNIV_DEBUG */
void clear() {
- memset((void*) this, 0, sizeof(data) + sizeof(uint32_t));
- ut_d(m_start = 0);
- ut_d(m_external = false);
+ /* Clear everything except the member "fix". */
+ memset((void*) this, 0,
+ reinterpret_cast<char*>(&fix)
+ - reinterpret_cast<char*>(this));
}
private: