mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
branches/zip: fsp_fill_free_list(): Compute "init_xdes" properly.
This commit is contained in:
parent
b43effdd9c
commit
83a96d3453
1 changed files with 6 additions and 2 deletions
|
@ -1311,8 +1311,12 @@ fsp_fill_free_list(
|
|||
while ((init_space && i < 1)
|
||||
|| ((i + FSP_EXTENT_SIZE <= size) && (count < FSP_FREE_ADD))) {
|
||||
|
||||
const ibool init_xdes
|
||||
= !(i & (zip_size ? UNIV_PAGE_SIZE - 1 : zip_size - 1));
|
||||
ibool init_xdes;
|
||||
if (zip_size) {
|
||||
init_xdes = i % zip_size == 0;
|
||||
} else {
|
||||
init_xdes = i % UNIV_PAGE_SIZE == 0;
|
||||
}
|
||||
|
||||
mlog_write_ulint(header + FSP_FREE_LIMIT, i + FSP_EXTENT_SIZE,
|
||||
MLOG_4BYTES, mtr);
|
||||
|
|
Loading…
Reference in a new issue