Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
9b71158a
Commit
9b71158a
authored
Jun 30, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: que_graph_try_free(): Unused, remove.
parent
1a68df2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
41 deletions
+0
-41
include/que0que.h
include/que0que.h
+0
-10
que/que0que.c
que/que0que.c
+0
-31
No files found.
include/que0que.h
View file @
9b71158a
...
...
@@ -93,16 +93,6 @@ que_thr_create(
que_fork_t
*
parent
,
/*!< in: parent node, i.e., a fork node */
mem_heap_t
*
heap
);
/*!< in: memory heap where created */
/**********************************************************************//**
Checks if the query graph is in a state where it should be freed, and
frees it in that case. If the session is in a state where it should be
closed, also this is done.
@return TRUE if freed */
UNIV_INTERN
ibool
que_graph_try_free
(
/*===============*/
que_t
*
graph
);
/*!< in: query graph */
/**********************************************************************//**
Frees a query graph, but not the heap where it was created. Does not free
explicit cursor declarations, they are freed in que_graph_free. */
UNIV_INTERN
...
...
que/que0que.c
View file @
9b71158a
...
...
@@ -696,37 +696,6 @@ que_graph_free(
mem_heap_free
(
graph
->
heap
);
}
/**********************************************************************//**
Checks if the query graph is in a state where it should be freed, and
frees it in that case. If the session is in a state where it should be
closed, also this is done.
@return TRUE if freed */
UNIV_INTERN
ibool
que_graph_try_free
(
/*===============*/
que_t
*
graph
)
/*!< in: query graph */
{
sess_t
*
sess
;
ut_ad
(
mutex_own
(
&
kernel_mutex
));
sess
=
(
graph
->
trx
)
->
sess
;
if
((
graph
->
state
==
QUE_FORK_BEING_FREED
)
&&
(
graph
->
n_active_thrs
==
0
))
{
UT_LIST_REMOVE
(
graphs
,
sess
->
graphs
,
graph
);
que_graph_free
(
graph
);
sess_try_close
(
sess
);
return
(
TRUE
);
}
return
(
FALSE
);
}
/****************************************************************//**
Performs an execution step on a thr node.
@return query thread to run next, or NULL if none */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment