diff options
author | unknown <marko@hundin.mysql.fi> | 2005-01-11 16:28:07 +0200 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2005-01-11 16:28:07 +0200 |
commit | ff4507a9dec635b1fa879d3fd62b5adf05be6235 (patch) | |
tree | f65410ac2958d249442b5341ea37a653007677dc /innobase/dict/dict0boot.c | |
parent | 0b7895b9b14981926c34fbd833aed0d9235da68a (diff) | |
download | mariadb-git-ff4507a9dec635b1fa879d3fd62b5adf05be6235.tar.gz |
InnoDB: Implement fast TRUNCATE TABLE (Bug #7150)
innobase/dict/dict0boot.c:
Added DICT_SYS_INDEXES_TYPE_FIELD
innobase/dict/dict0crea.c:
Added dict_truncate_index_tree()
innobase/include/dict0boot.h:
Added DICT_SYS_INDEXES_TYPE_FIELD
innobase/include/dict0crea.h:
Added dict_truncate_index_tree()
innobase/include/row0mysql.h:
Added row_truncate_table_for_mysql()
innobase/row/row0mysql.c:
Added row_truncate_table_for_mysql()
sql/ha_innodb.cc:
Added ha_innobase::delete_all_rows() in order to
implement fast TRUNCATE TABLE
sql/ha_innodb.h:
Added ha_innobase::delete_all_rows() in order to
implement fast TRUNCATE TABLE
Diffstat (limited to 'innobase/dict/dict0boot.c')
-rw-r--r-- | innobase/dict/dict0boot.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/innobase/dict/dict0boot.c b/innobase/dict/dict0boot.c index e500b92252f..883c5464319 100644 --- a/innobase/dict/dict0boot.c +++ b/innobase/dict/dict0boot.c @@ -333,6 +333,9 @@ dict_boot(void) #if DICT_SYS_INDEXES_SPACE_NO_FIELD != 5 + 2 #error "DICT_SYS_INDEXES_SPACE_NO_FIELD != 5 + 2" #endif +#if DICT_SYS_INDEXES_TYPE_FIELD != 4 + 2 +#error "DICT_SYS_INDEXES_TYPE_FIELD != 4 + 2" +#endif table->id = DICT_INDEXES_ID; dict_table_add_to_cache(table); |