From cd6fc3876b08a0a85d06140a778f4d66f7ce92e7 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 30 May 2011 21:35:32 +0300 Subject: [PATCH] Fixed valgrind problem in expression cache (double opening the table). sql/sql_expression_cache.cc: The call should not open the temporary table. It will be done later after its index creation. --- sql/sql_expression_cache.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/sql_expression_cache.cc b/sql/sql_expression_cache.cc index db1f47c5603..c3450884610 100644 --- a/sql/sql_expression_cache.cc +++ b/sql/sql_expression_cache.cc @@ -109,7 +109,8 @@ void Expression_cache_tmptable::init() ~(OPTION_BIG_TABLES | TMP_TABLE_FORCE_MYISAM)), HA_POS_ERROR, - (char *)"subquery-cache-table"))) + (char *)"subquery-cache-table", + TRUE))) { DBUG_PRINT("error", ("create_tmp_table failed, caching switched off")); DBUG_VOID_RETURN;