1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

bugfix: cmp_item_row::alloc_comparators() allocated on the wrong arena

it used current_thd->alloc() and allocated on the thd's execution arena,
not on table->expr_arena.

Remove THD::arena_for_cached_items that is temporarily set in
update_virtual_fields(), and replaces THD arena in get_datetime_value().
Instead set THD arena to table->expr_arena for the whole  duration
of update_virtual_fields()
This commit is contained in:
Sergei Golubchik
2017-01-14 20:55:33 +01:00
parent 67e2028161
commit 798fcb5416
6 changed files with 20 additions and 34 deletions

View File

@@ -957,7 +957,6 @@ THD::THD()
m_internal_handler= NULL;
m_binlog_invoker= FALSE;
arena_for_cached_items= 0;
memset(&invoker_user, 0, sizeof(invoker_user));
memset(&invoker_host, 0, sizeof(invoker_host));
prepare_derived_at_open= FALSE;