• unknown's avatar
    Cleanups: · 618f09b5
    unknown authored
    - unused variable THD::con_root removed
    - we don't need to bzero(&warn_root) just before init_alloc_root(&warn_root)
    - we don't need to bzero(&transaction.mem_root) because we 
      bzero(&transaction) later in THD::THD
    - we don't need to free thd->mem_root thd->transaction.mem_root
      in handle_one_connection because they are freed in THD::~THD
      which is called in end_thread later 
    
    
    
    sql/sql_class.cc:
      Cleanups:
      - unused variable THD::con_root removed
      - we don't need to bzero(&warn_root) just before init_alloc_root(&warn_root)
      - we don't need to bzero(&transaction.mem_root) because we 
        bzero(&transaction) later in THD::THD
    sql/sql_class.h:
      Unused variable THD::con_root removed
    sql/sql_parse.cc:
      we don't need to free thd->mem_root and thd->transaction.mem_root
      because they are freed in THD::~THD
    618f09b5
sql_class.h 33.7 KB