• unknown's avatar
    InnoDB: Remove redundant page_no field from dict_index_t. · 4db9aaee
    unknown authored
    This completes the patch for fast TRUNCATE TABLE.
    
    
    innobase/dict/dict0boot.c:
      dict_boot(): Add page_no parameter to dict_index_add_to_cache()
    innobase/dict/dict0crea.c:
      Remove dict_index_t:page_no; add ind_node_t:page_no
    innobase/dict/dict0dict.c:
      dict_index_add_to_cache(): Add parameter page_no
      dict_tree_create(): Add parameter page_no
    innobase/dict/dict0load.c:
      dict_load_indexes(): Add page_no to dict_index_add_to_cache() call
    innobase/ibuf/ibuf0ibuf.c:
      ibuf_data_init_for_space(): Move page_no to dict_index_add_to_cache()
    innobase/include/dict0crea.h:
      ind_node_t: Add page_no field
    innobase/include/dict0dict.h:
      dict_index_add_to_cache(): Add page_no
      dict_tree_create(): Add page_no
    innobase/include/dict0mem.h:
      dict_index_t: Remove page_no, as dict_tree_t has "page" field
    innobase/row/row0mysql.c:
      row_truncate_table_for_mysql(): Improve the comments
    4db9aaee
ibuf0ibuf.c 89.4 KB