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/include/btr0btr.ic | |
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/include/btr0btr.ic')
-rw-r--r-- | storage/innobase/include/btr0btr.ic | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/storage/innobase/include/btr0btr.ic b/storage/innobase/include/btr0btr.ic index a2f2ec885d9..f4fcd9f4194 100644 --- a/storage/innobase/include/btr0btr.ic +++ b/storage/innobase/include/btr0btr.ic @@ -161,23 +161,6 @@ btr_page_set_level( } /********************************************************//** -Gets the next index page number. -@return next page number */ -UNIV_INLINE -ulint -btr_page_get_next( -/*==============*/ - const page_t* page, /*!< in: index page */ - mtr_t* mtr MY_ATTRIBUTE((unused))) - /*!< in: mini-transaction handle */ -{ - ut_ad(page != NULL); - ut_ad(mtr != NULL); - - return(mach_read_from_4(page + FIL_PAGE_NEXT)); -} - -/********************************************************//** Sets the next index page field. */ UNIV_INLINE void @@ -201,22 +184,6 @@ btr_page_set_next( } /********************************************************//** -Gets the previous index page number. -@return prev page number */ -UNIV_INLINE -ulint -btr_page_get_prev( -/*==============*/ - const page_t* page, /*!< in: index page */ - mtr_t* mtr MY_ATTRIBUTE((unused))) /*!< in: mini-transaction handle */ -{ - ut_ad(page != NULL); - ut_ad(mtr != NULL); - - return(mach_read_from_4(page + FIL_PAGE_PREV)); -} - -/********************************************************//** Sets the previous index page field. */ UNIV_INLINE void |