diff options
author | monty@hundin.mysql.fi <> | 2002-08-08 15:24:47 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-08-08 15:24:47 +0300 |
commit | 087261482a9bbdaa3bc0e26052a719ebdb73644b (patch) | |
tree | e7f4a2013ed3d66e640f6574e62cb7e534a5d77f /innobase/include/log0log.h | |
parent | 8be1cdeb89ca59be790d58dc0d43993cdc4f4191 (diff) | |
parent | 3f48e0369b2e49026e9ddd4fddcee68ebe17db1e (diff) | |
download | mariadb-git-087261482a9bbdaa3bc0e26052a719ebdb73644b.tar.gz |
merge with 3.23.52
Diffstat (limited to 'innobase/include/log0log.h')
-rw-r--r-- | innobase/include/log0log.h | 40 |
1 files changed, 31 insertions, 9 deletions
diff --git a/innobase/include/log0log.h b/innobase/include/log0log.h index 5d848b85658..f200371de9d 100644 --- a/innobase/include/log0log.h +++ b/innobase/include/log0log.h @@ -431,15 +431,30 @@ log_block_set_data_len( byte* log_block, /* in: log block */ ulint len); /* in: data length */ /**************************************************************** -Gets a log block number stored in the trailer. */ +Calculates the checksum for a log block. */ UNIV_INLINE ulint -log_block_get_trl_no( -/*=================*/ - /* out: log block number stored in the block - trailer */ +log_block_calc_checksum( +/*====================*/ + /* out: checksum */ + byte* block); /* in: log block */ +/**************************************************************** +Gets a log block checksum field value. */ +UNIV_INLINE +ulint +log_block_get_checksum( +/*===================*/ + /* out: checksum */ byte* log_block); /* in: log block */ /**************************************************************** +Sets a log block checksum field value. */ +UNIV_INLINE +void +log_block_set_checksum( +/*===================*/ + byte* log_block, /* in: log block */ + ulint checksum); /* in: checksum */ +/**************************************************************** Gets a log block first mtr log record group offset. */ UNIV_INLINE ulint @@ -497,6 +512,12 @@ log_print( /*======*/ char* buf, /* in/out: buffer where to print */ char* buf_end);/* in: buffer end */ +/************************************************************************** +Refreshes the statistics used to print per-second averages. */ + +void +log_refresh_stats(void); +/*===================*/ extern log_t* log_sys; @@ -544,10 +565,11 @@ extern log_t* log_sys; bytes */ /* Offsets of a log block trailer from the end of the block */ -#define LOG_BLOCK_TRL_CHECKSUM 4 /* 1 byte checksum of the log block - contents */ -#define LOG_BLOCK_TRL_NO 3 /* 3 lowest bytes of the log block - number */ +#define LOG_BLOCK_CHECKSUM 4 /* 4 byte checksum of the log block + contents; in InnoDB versions + < 3.23.52 this did not contain the + checksum but the same value as + .._HDR_NO */ #define LOG_BLOCK_TRL_SIZE 4 /* trailer size in bytes */ /* Offsets for a checkpoint field */ |