InnoDB Plugin  1.0
Functions
que0que.ic File Reference
#include "usr0sess.h"
Include dependency graph for que0que.ic:
This graph shows which files directly or indirectly include this file:

Functions

UNIV_INLINE trx_tthr_get_trx (que_thr_t *thr)
UNIV_INLINE ibool thr_is_recv (const que_thr_t *thr)
UNIV_INLINE que_thr_tque_fork_get_first_thr (que_fork_t *fork)
UNIV_INLINE que_node_t * que_fork_get_child (que_fork_t *fork)
UNIV_INLINE ulint que_node_get_type (que_node_t *node)
UNIV_INLINE dfield_tque_node_get_val (que_node_t *node)
UNIV_INLINE ulint que_node_get_val_buf_size (que_node_t *node)
UNIV_INLINE void que_node_set_val_buf_size (que_node_t *node, ulint size)
UNIV_INLINE void que_node_set_parent (que_node_t *node, que_node_t *parent)
UNIV_INLINE dtype_tque_node_get_data_type (que_node_t *node)
UNIV_INLINE que_node_t * que_node_list_add_last (que_node_t *node_list, que_node_t *node)
UNIV_INLINE que_node_t * que_node_list_get_last (que_node_t *node_list)
UNIV_INLINE que_node_t * que_node_get_next (que_node_t *node)
UNIV_INLINE ulint que_node_list_get_len (que_node_t *node_list)
UNIV_INLINE que_node_t * que_node_get_parent (que_node_t *node)
UNIV_INLINE ibool que_thr_peek_stop (que_thr_t *thr)
UNIV_INLINE ibool que_graph_is_select (que_t *graph)

Detailed Description

Query graph

Created 5/27/1996 Heikki Tuuri

Function Documentation

UNIV_INLINE que_node_t* que_fork_get_child ( que_fork_t fork)

Gets the child node of the first thr in a fork.

Parameters
forkin: query fork
UNIV_INLINE que_thr_t* que_fork_get_first_thr ( que_fork_t fork)

Gets the first thr in a fork.

Parameters
forkin: query fork
UNIV_INLINE ibool que_graph_is_select ( que_t graph)

Returns TRUE if the query graph is for a SELECT statement.

Returns
TRUE if a select
Parameters
graphin: graph
UNIV_INLINE dtype_t* que_node_get_data_type ( que_node_t *  node)

Gets pointer to the value data type field of a graph node.

Parameters
nodein: graph node
UNIV_INLINE que_node_t* que_node_get_next ( que_node_t *  node)

Gets the next list node in a list of query graph nodes.

Returns
next node in a list of nodes
Parameters
nodein: node in a list
UNIV_INLINE que_node_t* que_node_get_parent ( que_node_t *  node)

Gets the parent node of a query graph node.

Returns
parent node or NULL
Parameters
nodein: node
UNIV_INLINE ulint que_node_get_type ( que_node_t *  node)

Gets the type of a graph node.

Parameters
nodein: graph node
UNIV_INLINE dfield_t* que_node_get_val ( que_node_t *  node)

Gets pointer to the value dfield of a graph node.

Parameters
nodein: graph node
UNIV_INLINE ulint que_node_get_val_buf_size ( que_node_t *  node)

Gets the value buffer size of a graph node.

Returns
val buffer size, not defined if val.data == NULL in node
Parameters
nodein: graph node
UNIV_INLINE que_node_t* que_node_list_add_last ( que_node_t *  node_list,
que_node_t *  node 
)

Catenates a query graph node to a list of them, possible empty list.

Returns
one-way list of nodes
Parameters
node_listin: node list, or NULL
nodein: node
UNIV_INLINE ulint que_node_list_get_len ( que_node_t *  node_list)

Gets a query graph node list length.

Returns
length, for NULL list 0
Parameters
node_listin: node list, or NULL
UNIV_INLINE void que_node_set_parent ( que_node_t *  node,
que_node_t *  parent 
)

Sets the parent of a graph node.

Parameters
nodein: graph node
parentin: parent
UNIV_INLINE void que_node_set_val_buf_size ( que_node_t *  node,
ulint  size 
)

Sets the value buffer size of a graph node.

Parameters
nodein: graph node
sizein: size
UNIV_INLINE ibool que_thr_peek_stop ( que_thr_t thr)

Checks if graph, trx, or session is in a state where the query thread should be stopped.

Returns
TRUE if should be stopped; NOTE that if the peek is made without reserving the trx mutex, then another peek with the mutex reserved is necessary before deciding the actual stopping
Parameters
thrin: query thread
UNIV_INLINE trx_t* thr_get_trx ( que_thr_t thr)

Gets the trx of a query thread.

Parameters
thrin: query thread
UNIV_INLINE ibool thr_is_recv ( const que_thr_t thr)

Determines if this thread is rolling back an incomplete transaction in crash recovery.

Returns
TRUE if thr is rolling back an incomplete transaction in crash recovery
Parameters
thrin: query thread