Commit 83a96d34 authored by marko's avatar marko

branches/zip: fsp_fill_free_list(): Compute "init_xdes" properly.

parent b43effdd
...@@ -1311,8 +1311,12 @@ fsp_fill_free_list( ...@@ -1311,8 +1311,12 @@ fsp_fill_free_list(
while ((init_space && i < 1) while ((init_space && i < 1)
|| ((i + FSP_EXTENT_SIZE <= size) && (count < FSP_FREE_ADD))) { || ((i + FSP_EXTENT_SIZE <= size) && (count < FSP_FREE_ADD))) {
const ibool init_xdes ibool init_xdes;
= !(i & (zip_size ? UNIV_PAGE_SIZE - 1 : zip_size - 1)); 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_write_ulint(header + FSP_FREE_LIMIT, i + FSP_EXTENT_SIZE,
MLOG_4BYTES, mtr); MLOG_4BYTES, mtr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment