diff options
author | unknown <holyfoot@deer.(none)> | 2006-02-17 13:37:37 +0400 |
---|---|---|
committer | unknown <holyfoot@deer.(none)> | 2006-02-17 13:37:37 +0400 |
commit | ca417a74a799cbe9bcdd7cf0501e2fb02357c1b1 (patch) | |
tree | c438be5369841975df2204ef2b5c5f1284a9bbba /sql/handler.cc | |
parent | 53cf5e6000006dc451740fb175a0da70854b81f6 (diff) | |
download | mariadb-git-ca417a74a799cbe9bcdd7cf0501e2fb02357c1b1.tar.gz |
WL#2645 (CHECK FOR UPGRADE)
5.1-related fixes
BitKeeper/etc/ignore:
Added scripts/mysql_upgrade to the ignore list
sql/ha_partition.cc:
ha_check and ha_repair now to be called
sql/handler.cc:
code modified to be 5.1 compliant
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index 146f1cce03d..68ca3855158 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -2081,10 +2081,7 @@ static bool update_frm_version(TABLE *table, bool needs_lock) if (table->s->mysql_version != MYSQL_VERSION_ID) DBUG_RETURN(0); - strxnmov(path, sizeof(path)-1, mysql_data_home, "/", table->s->db, "/", - table->s->table_name, reg_ext, NullS); - if (!unpack_filename(path, path)) - DBUG_RETURN(1); + strxmov(path, table->s->normalized_path.str, reg_ext, NullS); if (needs_lock) pthread_mutex_lock(&LOCK_open); @@ -2092,8 +2089,8 @@ static bool update_frm_version(TABLE *table, bool needs_lock) if ((file= my_open(path, O_RDWR|O_BINARY, MYF(MY_WME))) >= 0) { uchar version[4]; - char *key= table->s->table_cache_key; - uint key_length= table->s->key_length; + char *key= table->s->table_cache_key.str; + uint key_length= table->s->table_cache_key.length; TABLE *entry; HASH_SEARCH_STATE state; |