diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-11-11 13:36:21 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-11-11 13:36:21 +0200 |
commit | 29d67d051a3f6b252c0ab3c3720e6467e4f9a7d6 (patch) | |
tree | ba63dbe14a5c8a4b02fbdc55667cbcdc3f13e305 /storage/innobase/btr/btr0defragment.cc | |
parent | 1d2458f813a6af0335faf1bc092805954f526ec0 (diff) | |
download | mariadb-git-29d67d051a3f6b252c0ab3c3720e6467e4f9a7d6.tar.gz |
Cleanup btr_page_get_prev(), btr_page_get_next()
Remove the redundant parameter mtr_t*.
Make use of page_has_prev(), page_has_next() whenever possible.
Diffstat (limited to 'storage/innobase/btr/btr0defragment.cc')
-rw-r--r-- | storage/innobase/btr/btr0defragment.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/btr/btr0defragment.cc b/storage/innobase/btr/btr0defragment.cc index bcabfd3a3bf..4646b3252a7 100644 --- a/storage/innobase/btr/btr0defragment.cc +++ b/storage/innobase/btr/btr0defragment.cc @@ -586,7 +586,7 @@ btr_defragment_n_pages( blocks[0] = block; for (uint i = 1; i <= n_pages; i++) { page_t* page = buf_block_get_frame(blocks[i-1]); - ulint page_no = btr_page_get_next(page, mtr); + ulint page_no = btr_page_get_next(page); total_data_size += page_get_data_size(page); total_n_recs += page_get_n_recs(page); if (page_no == FIL_NULL) { |