summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2005-09-02 17:21:19 +0400
committerkonstantin@mysql.com <>2005-09-02 17:21:19 +0400
commita3ddcdf8fbf2058eeae6d7db7f1dc99785329d7b (patch)
tree6996d85b80a0fadca8491157c75d719dab155e97 /sql/sql_view.cc
parentb44b36bd1f216c5682ad3fe17d3747eca063c3c4 (diff)
downloadmariadb-git-a3ddcdf8fbf2058eeae6d7db7f1dc99785329d7b.tar.gz
Rename:
- current_arena to stmt_arena: the thread may have more than one 'current' arenas: one for runtime data, and one for the parsed tree of a statement. Only one of them is active at any moment. - set_item_arena -> set_query_arena, because Item_arena was renamed to Query_arena a while ago - set_n_backup_item_arena -> set_n_backup_active_arena; the active arena is the arena thd->mem_root and thd->free_list are currently pointing at. - restore_backup_item_arena -> restore_active_arena (with the same rationale) - change_arena_if_needed -> activate_stmt_arena_if_needed; this method sets thd->stmt_arena active if it's not done yet.
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 8269c16916a..4955361182a 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -700,11 +700,11 @@ mysql_make_view(File_parser *parser, TABLE_LIST *table)
For now we assume that tables will not be changed during PS life (it
will be TRUE as far as we make new table cache).
*/
- Query_arena *arena= thd->current_arena, backup;
+ Query_arena *arena= thd->stmt_arena, backup;
if (arena->is_conventional())
arena= 0;
else
- thd->set_n_backup_item_arena(arena, &backup);
+ thd->set_n_backup_active_arena(arena, &backup);
/* init timestamp */
if (!table->timestamp.str)
@@ -997,13 +997,13 @@ ok:
ok2:
if (arena)
- thd->restore_backup_item_arena(arena, &backup);
+ thd->restore_active_arena(arena, &backup);
thd->lex= old_lex;
DBUG_RETURN(0);
err:
if (arena)
- thd->restore_backup_item_arena(arena, &backup);
+ thd->restore_active_arena(arena, &backup);
delete table->view;
table->view= 0; // now it is not VIEW placeholder
thd->lex= old_lex;