diff options
Diffstat (limited to 'storage/innobase/include/btr0cur.ic')
-rw-r--r-- | storage/innobase/include/btr0cur.ic | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/storage/innobase/include/btr0cur.ic b/storage/innobase/include/btr0cur.ic index e31f77c77eb..540417e3062 100644 --- a/storage/innobase/include/btr0cur.ic +++ b/storage/innobase/include/btr0cur.ic @@ -38,7 +38,7 @@ btr_cur_get_page_cur( { return(&((btr_cur_t*) cursor)->page_cur); } -#endif /* UNIV_DEBUG */ + /*********************************************************//** Returns the buffer block on which the tree cursor is positioned. @return pointer to buffer block */ @@ -46,7 +46,7 @@ UNIV_INLINE buf_block_t* btr_cur_get_block( /*==============*/ - btr_cur_t* cursor) /*!< in: tree cursor */ + const btr_cur_t* cursor) /*!< in: tree cursor */ { return(page_cur_get_block(btr_cur_get_page_cur(cursor))); } @@ -58,10 +58,11 @@ UNIV_INLINE rec_t* btr_cur_get_rec( /*============*/ - btr_cur_t* cursor) /*!< in: tree cursor */ + const btr_cur_t* cursor) /*!< in: tree cursor */ { - return(page_cur_get_rec(&(cursor->page_cur))); + return(page_cur_get_rec(btr_cur_get_page_cur(cursor))); } +#endif /* UNIV_DEBUG */ /*********************************************************//** Returns the compressed page on which the tree cursor is positioned. @@ -99,18 +100,6 @@ btr_cur_get_page( } /*********************************************************//** -Returns the index of a cursor. -@return index */ -UNIV_INLINE -dict_index_t* -btr_cur_get_index( -/*==============*/ - btr_cur_t* cursor) /*!< in: B-tree cursor */ -{ - return(cursor->index); -} - -/*********************************************************//** Positions a tree cursor at a given record. */ UNIV_INLINE void |