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

This commit is contained in:
marko 2006-06-20 11:32:26 +00:00
parent b43effdd9c
commit 83a96d3453

View file

@ -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);