![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
Mini-transaction logging routines. More...
#include "buf0dblwr.h"#include "fsp0types.h"#include "mach0data.h"#include "trx0types.h"#include "mysqld_error.h"Functions | |
| static bool | mlog_open (mtr_t *mtr, ulint size, byte *&buffer) | 
| static bool | mlog_open_metadata (mtr_t *mtr, ulint size, byte *&buffer) | 
| static void | mlog_close (mtr_t *mtr, byte *ptr) | 
| Closes a buffer opened to mlog.  More... | |
| static void | mlog_catenate_ulint (mtr_buf_t *mtr_buf, ulint val, mlog_id_t type) | 
| Concatenates 1 - 4 bytes to the mtr log.  More... | |
| static void | mlog_catenate_ulint (mtr_t *mtr, ulint val, mlog_id_t type) | 
| Concatenates 1 - 4 bytes to the mtr log.  More... | |
| static void | mlog_catenate_ulint_compressed (mtr_t *mtr, ulint val) | 
| Concatenates a compressed ulint to mlog.  More... | |
| static void | mlog_catenate_ull_compressed (mtr_t *mtr, uint64_t val) | 
| Catenates a compressed 64-bit integer to mlog.  More... | |
| static byte * | mlog_write_initial_dict_log_record (mlog_id_t type, table_id_t id, uint64_t version, byte *log_ptr, mtr_t *mtr) | 
| static byte * | mlog_write_initial_log_record_low (mlog_id_t type, space_id_t space_id, page_no_t page_no, byte *log_ptr, mtr_t *mtr) | 
| Writes a log record about an operation.  More... | |
| static byte * | mlog_write_initial_log_record_fast (const byte *ptr, mlog_id_t type, byte *log_ptr, mtr_t *mtr) | 
| Writes the initial part of a log record (3..11 bytes).  More... | |
Mini-transaction logging routines.
Created 12/7/1995 Heikki Tuuri
Concatenates 1 - 4 bytes to the mtr log.
The value is not compressed.
| mtr_buf | in/out: buffer to write | 
| val | in: value to write | 
| type | in: type of value to write | 
Concatenates 1 - 4 bytes to the mtr log.
The value is not compressed.
| mtr | in/out: mtr | 
| val | in: value to write | 
| type | in: MLOG_1BYTE, MLOG_2BYTES, MLOG_4BYTES | 
Concatenates a compressed ulint to mlog.
| mtr | in: mtr | 
| val | in: value to write | 
      
  | 
  inlinestatic | 
Catenates a compressed 64-bit integer to mlog.
| mtr | in: mtr | 
| val | in: value to write | 
Closes a buffer opened to mlog.
| mtr | in: mtr | 
| ptr | in: buffer space from ptr up was not used | 
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
Writes the initial part of a log record (3..11 bytes).
If the implementation of this function is changed, all size parameters to mlog_open() should be adjusted accordingly!
| ptr | in: pointer to (inside) a buffer frame holding the file page where modification is made | 
| type | in: log item type: MLOG_1BYTE, ... | 
| log_ptr | in: pointer to mtr log which has been opened | 
| mtr | in/out: mtr | 
      
  | 
  inlinestatic | 
Writes a log record about an operation.
| [in] | type | Redo log record type | 
| [in] | space_id | Tablespace identifier | 
| [in] | page_no | Page number | 
| [in,out] | log_ptr | Current end of mini-transaction log | 
| [in,out] | mtr | Mini-transaction |