summaryrefslogtreecommitdiff
path: root/innobase/include
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2004-06-17 14:01:56 +0300
committerunknown <heikki@hundin.mysql.fi>2004-06-17 14:01:56 +0300
commit2c259f0e8990b8cdce519a512a25944282553696 (patch)
tree9ead349288c3304a09a3a693d18bc043e585b162 /innobase/include
parent04bddf7532e508e63efa2c94c20a54a05c0f39b3 (diff)
downloadmariadb-git-2c259f0e8990b8cdce519a512a25944282553696.tar.gz
Cset exclude: marko@hundin.mysql.fi|ChangeSet|20040316101802|63386
innobase/include/que0que.h: Exclude innobase/include/que0que.ic: Exclude innobase/que/que0que.c: Exclude
Diffstat (limited to 'innobase/include')
-rw-r--r--innobase/include/que0que.h16
-rw-r--r--innobase/include/que0que.ic18
2 files changed, 34 insertions, 0 deletions
diff --git a/innobase/include/que0que.h b/innobase/include/que0que.h
index bcd7aed7e88..e1874edcaf2 100644
--- a/innobase/include/que0que.h
+++ b/innobase/include/que0que.h
@@ -307,6 +307,22 @@ 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 a63922f8c80..ae4ed10560f 100644
--- a/innobase/include/que0que.ic
+++ b/innobase/include/que0que.ic
@@ -238,3 +238,21 @@ 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);
+}