46
46
ulint len, /* in: string length */
47
47
mtr_t* mtr); /* in: mini-transaction handle */
48
48
/************************************************************
49
Logs a write of a string to a file page buffered in the buffer pool.
50
Writes the corresponding log record to the mini-transaction log. */
55
byte* ptr, /* in: pointer written to */
56
ulint len, /* in: string length */
57
mtr_t* mtr); /* in: mini-transaction handle */
58
/************************************************************
49
59
Writes initial part of a log record consisting of one-byte item
50
60
type and four-byte space and page numbers. */
53
63
mlog_write_initial_log_record(
54
64
/*==========================*/
55
byte* ptr, /* in: pointer to (inside) a buffer frame
56
holding the file page where modification
58
byte type, /* in: log item type: MLOG_1BYTE, ... */
59
mtr_t* mtr); /* in: mini-transaction handle */
65
const byte* ptr, /* in: pointer to (inside) a buffer
66
frame holding the file page where
67
modification is made */
68
byte type, /* in: log item type: MLOG_1BYTE, ... */
69
mtr_t* mtr); /* in: mini-transaction handle */
60
70
/************************************************************
61
71
Writes a log record about an .ibd file create/delete/rename. */
131
141
mlog_write_initial_log_record_fast(
132
142
/*===============================*/
133
/* out: new value of log_ptr */
134
byte* ptr, /* in: pointer to (inside) a buffer frame holding the
135
file page where modification is made */
136
byte type, /* in: log item type: MLOG_1BYTE, ... */
137
byte* log_ptr,/* in: pointer to mtr log which has been opened */
138
mtr_t* mtr); /* in: mtr */
143
/* out: new value of log_ptr */
144
const byte* ptr, /* in: pointer to (inside) a buffer
145
frame holding the file page where
146
modification is made */
147
byte type, /* in: log item type: MLOG_1BYTE, ... */
148
byte* log_ptr,/* in: pointer to mtr log which has
150
mtr_t* mtr); /* in: mtr */
139
151
/************************************************************
140
152
Parses an initial log record written by mlog_write_initial_log_record. */
143
155
mlog_parse_initial_log_record(
144
156
/*==========================*/
160
172
ulint type, /* in: log record type: MLOG_1BYTE, ... */
161
173
byte* ptr, /* in: buffer */
162
174
byte* end_ptr,/* in: buffer end */
163
byte* page); /* in: page where to apply the log record, or NULL */
175
byte* page, /* in: page where to apply the log record, or NULL */
176
void* page_zip);/* in/out: compressed page, or NULL */
164
177
/************************************************************
165
178
Parses a log record written by mlog_write_string. */
168
181
mlog_parse_string(
169
182
/*==============*/
172
185
byte* ptr, /* in: buffer */
173
186
byte* end_ptr,/* in: buffer end */
174
byte* page); /* in: page where to apply the log record, or NULL */
187
byte* page, /* in: page where to apply the log record, or NULL */
188
void* page_zip);/* in/out: compressed page, or NULL */
177
191
/************************************************************
179
193
if needed, the field lengths of an index. Reserves space
180
194
for further log entries. The log entry must be closed with
184
198
mlog_open_and_write_index(
185
199
/*======================*/