diff options
Diffstat (limited to 'storage/xtradb/include/btr0cur.ic')
-rw-r--r-- | storage/xtradb/include/btr0cur.ic | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/storage/xtradb/include/btr0cur.ic b/storage/xtradb/include/btr0cur.ic index 5fc4651ca13..080866c7465 100644 --- a/storage/xtradb/include/btr0cur.ic +++ b/storage/xtradb/include/btr0cur.ic @@ -48,7 +48,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 */ @@ -56,7 +56,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))); } @@ -68,10 +68,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. @@ -109,18 +110,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 |