diff options
author | unknown <heikki@donna.mysql.fi> | 2001-05-01 20:57:49 +0300 |
---|---|---|
committer | unknown <heikki@donna.mysql.fi> | 2001-05-01 20:57:49 +0300 |
commit | a9d2e5dd17fc9b3b7a8db302fdc94712b1f39d82 (patch) | |
tree | a6c3cc3b62ccbb655d4125773ee6e9afb02e0a9c /innobase/include/buf0buf.h | |
parent | 449c819b444e71915931645d49ba855400f3e216 (diff) | |
download | mariadb-git-a9d2e5dd17fc9b3b7a8db302fdc94712b1f39d82.tar.gz |
log0recv.c Add checksum to written pages to check that they are also read in unchanged
buf0buf.h Add checksum to written pages to check that they are also read in unchanged
buf0flu.c Add checksum to written pages to check that they are also read in unchanged
buf0buf.c Add checksum to written pages to check that they are also read in unchanged
innobase/buf/buf0buf.c:
Add checksum to written pages to check that they are also read in unchanged
innobase/buf/buf0flu.c:
Add checksum to written pages to check that they are also read in unchanged
innobase/include/buf0buf.h:
Add checksum to written pages to check that they are also read in unchanged
innobase/log/log0recv.c:
Add checksum to written pages to check that they are also read in unchanged
Diffstat (limited to 'innobase/include/buf0buf.h')
-rw-r--r-- | innobase/include/buf0buf.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/innobase/include/buf0buf.h b/innobase/include/buf0buf.h index 09883fbb037..5e90f5952fc 100644 --- a/innobase/include/buf0buf.h +++ b/innobase/include/buf0buf.h @@ -342,6 +342,16 @@ buf_frame_get_modify_clock( /*=======================*/ /* out: value */ buf_frame_t* frame); /* in: pointer to a frame */ +/************************************************************************ +Calculates a page checksum which is stored to the page when it is written +to a file. Note that we must be careful to calculate the same value +on 32-bit and 64-bit architectures. */ + +ulint +buf_calc_page_checksum( +/*===================*/ + /* out: checksum */ + byte* page); /* in: buffer page */ /************************************************************************** Gets the page number of a pointer pointing within a buffer frame containing a file page. */ |