diff options
author | marko@hundin.mysql.fi <> | 2004-03-16 12:18:02 +0200 |
---|---|---|
committer | marko@hundin.mysql.fi <> | 2004-03-16 12:18:02 +0200 |
commit | 625c310b5a7c7edcf39746a208e9c94a4a10d9b8 (patch) | |
tree | 51d8d54018821cb9a03b1909988978f9f28c2572 /innobase | |
parent | a1931a36f965610c677368bb9dba295ef361d16b (diff) | |
download | mariadb-git-625c310b5a7c7edcf39746a208e9c94a4a10d9b8.tar.gz |
InnoDB: remove debug code from non-debug version
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/include/que0que.h | 16 | ||||
-rw-r--r-- | innobase/include/que0que.ic | 18 | ||||
-rw-r--r-- | innobase/que/que0que.c | 4 |
3 files changed, 3 insertions, 35 deletions
diff --git a/innobase/include/que0que.h b/innobase/include/que0que.h index e1874edcaf2..bcd7aed7e88 100644 --- a/innobase/include/que0que.h +++ b/innobase/include/que0que.h @@ -307,22 +307,6 @@ que_thr_peek_stop( mutex reserved is necessary before deciding the actual stopping */ 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 mutex with the exceptions named below */ diff --git a/innobase/include/que0que.ic b/innobase/include/que0que.ic index ae4ed10560f..a63922f8c80 100644 --- a/innobase/include/que0que.ic +++ b/innobase/include/que0que.ic @@ -238,21 +238,3 @@ que_thr_peek_stop( 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); -} diff --git a/innobase/que/que0que.c b/innobase/que/que0que.c index 279f9fc21aa..bff0fe61248 100644 --- a/innobase/que/que0que.c +++ b/innobase/que/que0que.c @@ -1034,9 +1034,10 @@ que_thr_stop_for_mysql_no_error( trx->n_active_thrs--; } +#ifdef UNIV_DEBUG /************************************************************************** Prints info of an SQL query graph node. */ - +static void que_node_print_info( /*================*/ @@ -1093,6 +1094,7 @@ que_node_print_info( fprintf(stderr, "Node type %lu: %s, address %p\n", type, str, node); } +#endif /* UNIV_DEBUG */ /************************************************************************** Performs an execution step on a query thread. */ |