diff options
Diffstat (limited to 'storage/innobase/include/que0que.ic')
-rw-r--r-- | storage/innobase/include/que0que.ic | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/storage/innobase/include/que0que.ic b/storage/innobase/include/que0que.ic index eff5a86d958..ec61081cfe2 100644 --- a/storage/innobase/include/que0que.ic +++ b/storage/innobase/include/que0que.ic @@ -1,6 +1,6 @@ /***************************************************************************** -Copyright (c) 1996, 2010, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 1996, 2013, Oracle and/or its affiliates. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -84,11 +84,9 @@ UNIV_INLINE ulint que_node_get_type( /*==============*/ - que_node_t* node) /*!< in: graph node */ + const que_node_t* node) /*!< in: graph node */ { - ut_ad(node); - - return(((que_common_t*) node)->type); + return(reinterpret_cast<const que_common_t*>(node)->type); } /***********************************************************************//** @@ -106,7 +104,7 @@ que_node_get_val( /***********************************************************************//** Gets the value buffer size of a graph node. -@return val buffer size, not defined if val.data == NULL in node */ +@return val buffer size, not defined if val.data == NULL in node */ UNIV_INLINE ulint que_node_get_val_buf_size( @@ -161,7 +159,7 @@ que_node_get_data_type( /*********************************************************************//** Catenates a query graph node to a list of them, possible empty list. -@return one-way list of nodes */ +@return one-way list of nodes */ UNIV_INLINE que_node_t* que_node_list_add_last( @@ -216,7 +214,7 @@ que_node_list_get_last( } /*********************************************************************//** Gets the next list node in a list of query graph nodes. -@return next node in a list of nodes */ +@return next node in a list of nodes */ UNIV_INLINE que_node_t* que_node_get_next( @@ -228,7 +226,7 @@ que_node_get_next( /*********************************************************************//** Gets a query graph node list length. -@return length, for NULL list 0 */ +@return length, for NULL list 0 */ UNIV_INLINE ulint que_node_list_get_len( @@ -251,7 +249,7 @@ que_node_list_get_len( /*********************************************************************//** Gets the parent node of a query graph node. -@return parent node or NULL */ +@return parent node or NULL */ UNIV_INLINE que_node_t* que_node_get_parent( @@ -292,7 +290,7 @@ que_thr_peek_stop( /***********************************************************************//** Returns TRUE if the query graph is for a SELECT statement. -@return TRUE if a select */ +@return TRUE if a select */ UNIV_INLINE ibool que_graph_is_select( @@ -307,3 +305,4 @@ que_graph_is_select( return(FALSE); } + |