• konstantin@mysql.com's avatar
    Rename: · a3ddcdf8
    konstantin@mysql.com authored
    - 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.
    a3ddcdf8
sql_class.cc 52.6 KB