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/mi_open.c | |
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/mi_open.c')
-rw-r--r-- | myisam/mi_open.c | 3 |
1 files changed, 3 insertions, 0 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) |