Commit 9b71158a authored by marko's avatar marko

branches/zip: que_graph_try_free(): Unused, remove.

parent 1a68df2a
......@@ -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
......
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment