summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorholyfoot@deer.(none) <>2006-02-17 13:37:37 +0400
committerholyfoot@deer.(none) <>2006-02-17 13:37:37 +0400
commit942503927a970f59c8380a130f9fdf274ff29f2a (patch)
treec438be5369841975df2204ef2b5c5f1284a9bbba
parentbe02944df69c43c662ba7e31d9d6f49f9ff5eeac (diff)
downloadmariadb-git-942503927a970f59c8380a130f9fdf274ff29f2a.tar.gz
WL#2645 (CHECK FOR UPGRADE)
5.1-related fixes
-rw-r--r--.bzrignore1
-rw-r--r--sql/ha_partition.cc4
-rw-r--r--sql/handler.cc9
3 files changed, 6 insertions, 8 deletions
diff --git a/.bzrignore b/.bzrignore
index 50218bc2dc3..d6d84003198 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -1613,3 +1613,4 @@ vio/viotest-sslconnect.cpp
vio/viotest.cpp
zlib/*.ds?
zlib/*.vcproj
+scripts/mysql_upgrade
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc
index 1897886ce45..5d4d1570044 100644
--- a/sql/ha_partition.cc
+++ b/sql/ha_partition.cc
@@ -1078,9 +1078,9 @@ static int handle_opt_part(THD *thd, HA_CHECK_OPT *check_opt,
else if (flag == ANALYZE_PARTS)
error= file->analyze(thd, check_opt);
else if (flag == CHECK_PARTS)
- error= file->check(thd, check_opt);
+ error= file->ha_check(thd, check_opt);
else if (flag == REPAIR_PARTS)
- error= file->repair(thd, check_opt);
+ error= file->ha_repair(thd, check_opt);
else
{
DBUG_ASSERT(FALSE);
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;