mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
branches/zip: fsp_fill_free_list(): Replace % with ut_2pow_remainder().
This commit is contained in:
parent
bbd6d812d3
commit
bfb9c2d0fb
1 changed files with 2 additions and 2 deletions
|
@ -1313,9 +1313,9 @@ fsp_fill_free_list(
|
|||
|
||||
ibool init_xdes;
|
||||
if (zip_size) {
|
||||
init_xdes = i % zip_size == 0;
|
||||
init_xdes = ut_2pow_remainder(i, zip_size) == 0;
|
||||
} else {
|
||||
init_xdes = i % UNIV_PAGE_SIZE == 0;
|
||||
init_xdes = ut_2pow_remainder(i, UNIV_PAGE_SIZE) == 0;
|
||||
}
|
||||
|
||||
mlog_write_ulint(header + FSP_FREE_LIMIT, i + FSP_EXTENT_SIZE,
|
||||
|
|
Loading…
Reference in a new issue