InnoDB: remove debug code from non-debug version
This commit is contained in:
parent
a1931a36f9
commit
625c310b5a
@ -307,22 +307,6 @@ que_thr_peek_stop(
|
|||||||
mutex reserved is necessary before deciding
|
mutex reserved is necessary before deciding
|
||||||
the actual stopping */
|
the actual stopping */
|
||||||
que_thr_t* thr); /* in: query thread */
|
que_thr_t* thr); /* in: query thread */
|
||||||
/***************************************************************************
|
|
||||||
Returns TRUE if the query graph is for a SELECT statement. */
|
|
||||||
UNIV_INLINE
|
|
||||||
ibool
|
|
||||||
que_graph_is_select(
|
|
||||||
/*================*/
|
|
||||||
/* out: TRUE if a select */
|
|
||||||
que_t* graph); /* in: graph */
|
|
||||||
/**************************************************************************
|
|
||||||
Prints info of an SQL query graph node. */
|
|
||||||
|
|
||||||
void
|
|
||||||
que_node_print_info(
|
|
||||||
/*================*/
|
|
||||||
que_node_t* node); /* in: query graph node */
|
|
||||||
|
|
||||||
|
|
||||||
/* Query graph query thread node: the fields are protected by the kernel
|
/* Query graph query thread node: the fields are protected by the kernel
|
||||||
mutex with the exceptions named below */
|
mutex with the exceptions named below */
|
||||||
|
@ -238,21 +238,3 @@ que_thr_peek_stop(
|
|||||||
|
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************************
|
|
||||||
Returns TRUE if the query graph is for a SELECT statement. */
|
|
||||||
UNIV_INLINE
|
|
||||||
ibool
|
|
||||||
que_graph_is_select(
|
|
||||||
/*================*/
|
|
||||||
/* out: TRUE if a select */
|
|
||||||
que_t* graph) /* in: graph */
|
|
||||||
{
|
|
||||||
if (graph->fork_type == QUE_FORK_SELECT_SCROLL
|
|
||||||
|| graph->fork_type == QUE_FORK_SELECT_NON_SCROLL) {
|
|
||||||
|
|
||||||
return(TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
return(FALSE);
|
|
||||||
}
|
|
||||||
|
@ -1034,9 +1034,10 @@ que_thr_stop_for_mysql_no_error(
|
|||||||
trx->n_active_thrs--;
|
trx->n_active_thrs--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef UNIV_DEBUG
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
Prints info of an SQL query graph node. */
|
Prints info of an SQL query graph node. */
|
||||||
|
static
|
||||||
void
|
void
|
||||||
que_node_print_info(
|
que_node_print_info(
|
||||||
/*================*/
|
/*================*/
|
||||||
@ -1093,6 +1094,7 @@ que_node_print_info(
|
|||||||
|
|
||||||
fprintf(stderr, "Node type %lu: %s, address %p\n", type, str, node);
|
fprintf(stderr, "Node type %lu: %s, address %p\n", type, str, node);
|
||||||
}
|
}
|
||||||
|
#endif /* UNIV_DEBUG */
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
Performs an execution step on a query thread. */
|
Performs an execution step on a query thread. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user