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.
This commit is contained in:
parent
c9a349488b
commit
cd6fc3876b
@ -109,7 +109,8 @@ void Expression_cache_tmptable::init()
|
|||||||
~(OPTION_BIG_TABLES |
|
~(OPTION_BIG_TABLES |
|
||||||
TMP_TABLE_FORCE_MYISAM)),
|
TMP_TABLE_FORCE_MYISAM)),
|
||||||
HA_POS_ERROR,
|
HA_POS_ERROR,
|
||||||
(char *)"subquery-cache-table")))
|
(char *)"subquery-cache-table",
|
||||||
|
TRUE)))
|
||||||
{
|
{
|
||||||
DBUG_PRINT("error", ("create_tmp_table failed, caching switched off"));
|
DBUG_PRINT("error", ("create_tmp_table failed, caching switched off"));
|
||||||
DBUG_VOID_RETURN;
|
DBUG_VOID_RETURN;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user