diff options
author | unknown <serg@sergbook.mysql.com> | 2003-04-23 14:03:21 +0400 |
---|---|---|
committer | unknown <serg@sergbook.mysql.com> | 2003-04-23 14:03:21 +0400 |
commit | d19ba33f98a2de54d5356d75fe1a92d88f407ca6 (patch) | |
tree | a7128aeb74417cb4aeefa2c824a98c5b69b25166 /myisam | |
parent | b534154b12c6b592594588efb3dacc5dbf2e33e7 (diff) | |
download | mariadb-git-d19ba33f98a2de54d5356d75fe1a92d88f407ca6.tar.gz |
warning when a 4.1 MYI file is opened in 4.0
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/mi_open.c | 3 | ||||
-rw-r--r-- | myisam/myisamdef.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/myisam/mi_open.c b/myisam/mi_open.c index 60049325c5c..2f3ef872492 100644 --- a/myisam/mi_open.c +++ b/myisam/mi_open.c @@ -182,6 +182,9 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags) } share->state_diff_length=len-MI_STATE_INFO_SIZE; + if (share->state.header.fulltext_keys) + fprintf(stderr, "Table file %s was created in MySQL 4.1+, use REPAIR TABLE ... USE_FRM to recreate it as a valid MySQL 4.0 table\n", name_buff); + mi_state_info_read(disk_cache, &share->state); len= mi_uint2korr(share->state.header.base_info_length); if (len != MI_BASE_INFO_SIZE) diff --git a/myisam/myisamdef.h b/myisam/myisamdef.h index 92eead7b96c..7c035bc6097 100644 --- a/myisam/myisamdef.h +++ b/myisam/myisamdef.h @@ -55,7 +55,8 @@ typedef struct st_mi_state_info uchar uniques; /* number of UNIQUE definitions */ uchar language; /* Language for indexes */ uchar max_block_size; /* max keyblock size */ - uchar not_used[2]; /* To align to 8 */ + uchar fulltext_keys; /* reserved for 4.1 */ + uchar not_used; /* To align to 8 */ } header; MI_STATUS_INFO state; |