diff options
author | unknown <heikki@hundin.mysql.fi> | 2003-11-25 15:11:01 +0200 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2003-11-25 15:11:01 +0200 |
commit | 7d6479cc2800b4ae4ed504feecfee69b2f2a56ec (patch) | |
tree | 7705db1b28b1692b4930e6f4d33e7b7d53459f9b /innobase/dict | |
parent | fbe6f32ae27019ef4f7437fd209826e879d87920 (diff) | |
download | mariadb-git-7d6479cc2800b4ae4ed504feecfee69b2f2a56ec.tar.gz |
dict0boot.c:
Marko's patch: check the position of some system table columns already at C compile time
innobase/dict/dict0boot.c:
Marko's patch: check the position of some system table columns already at C compile time
Diffstat (limited to 'innobase/dict')
-rw-r--r-- | innobase/dict/dict0boot.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/innobase/dict/dict0boot.c b/innobase/dict/dict0boot.c index f0d41018948..76c94d1a918 100644 --- a/innobase/dict/dict0boot.c +++ b/innobase/dict/dict0boot.c @@ -332,8 +332,12 @@ dict_boot(void) dict_mem_table_add_col(table, (char *) "PAGE_NO", DATA_INT, 0, 4, 0); /* The '+ 2' below comes from the 2 system fields */ - ut_ad(DICT_SYS_INDEXES_PAGE_NO_FIELD == 6 + 2); - ut_ad(DICT_SYS_INDEXES_SPACE_NO_FIELD == 5 + 2); +#if DICT_SYS_INDEXES_PAGE_NO_FIELD != 6 + 2 +#error "DICT_SYS_INDEXES_PAGE_NO_FIELD != 6 + 2" +#endif +#if DICT_SYS_INDEXES_SPACE_NO_FIELD != 5 + 2 +#error "DICT_SYS_INDEXES_SPACE_NO_FIELD != 5 + 2" +#endif table->id = DICT_INDEXES_ID; dict_table_add_to_cache(table); |