diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-11-08 12:43:04 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-11-08 13:45:02 +0200 |
commit | 5ed54e78ac77a94aa37674ae0d484f687812f984 (patch) | |
tree | 7c4312e77eda7d2c8a7a31fd44ecfd521698bacd /extra/innochecksum.cc | |
parent | 74b7d0182dc5966898da0f039cf059c3a8ad18f6 (diff) | |
download | mariadb-git-5ed54e78ac77a94aa37674ae0d484f687812f984.tar.gz |
Cleanup: Remove redundant XDES_FREE_BIT parameters
The page allocation bitmaps in the extent descriptor pages
contain two bits per page: XDES_FREE_BIT and XDES_CLEAN_BIT,
which is unused. Simplify read access.
xdes_is_free(descr,mtr): Remove. Use !xdes_get_n_used(descr) instead.
xdes_is_free(): Replaces xdes_get_bit(), xdes_mtr_get_bit().
xdes_find_free(): Replaces xdes_find_bit().
fsp_seg_inode_page_get_nth_inode(): Remove the redundant parameters
physical_size, mtr.
fsp_seg_inode_page_find_used(), fsp_seg_inode_page_find_free():
Remove the redundant parameter mtr.
Diffstat (limited to 'extra/innochecksum.cc')
-rw-r--r-- | extra/innochecksum.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/innochecksum.cc b/extra/innochecksum.cc index f971fac20ec..3bc00b339b1 100644 --- a/extra/innochecksum.cc +++ b/extra/innochecksum.cc @@ -895,8 +895,8 @@ parse_page( const byte* des = xdes + XDES_ARR_OFFSET + XDES_SIZE * ((page_no & (physical_page_size - 1)) / FSP_EXTENT_SIZE); - if (xdes_get_bit(des, XDES_FREE_BIT, - page_no % FSP_EXTENT_SIZE)) { + if (xdes_is_free(des, + page_no % FSP_EXTENT_SIZE)) { index.free_pages++; return; } |