1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fix for MacOSX and symlinks

Fix for USE_FRM and crashed index file


configure.in:
  Fix for MacOSX and symlinks
myisam/mi_open.c:
  Give better error message in case of of crashed index file
mysql-test/r/repair.result:
  new test case
mysql-test/r/update.result:
  new test case
mysql-test/t/repair.test:
  Added test with crashed MyISAM index header
mysql-test/t/update.test:
  Added test case from bugs system
sql/handler.cc:
  Indentation changes
sql/sql_table.cc:
  Fix for USE_FRM and crashed index file
This commit is contained in:
unknown
2003-05-14 01:27:26 +03:00
parent 6c60313bc7
commit 13a23a879f
11 changed files with 149 additions and 74 deletions

View File

@@ -830,7 +830,8 @@ void handler::print_error(int error, myf errflag)
DBUG_VOID_RETURN;
}
/* Return key if error because of duplicated keys */
/* Return key if error because of duplicated keys */
uint handler::get_dup_key(int error)
{
@@ -841,6 +842,7 @@ uint handler::get_dup_key(int error)
DBUG_RETURN(table->file->errkey);
}
int handler::delete_table(const char *name)
{
int error=0;
@@ -867,9 +869,10 @@ int handler::rename_table(const char * from, const char * to)
DBUG_RETURN(0);
}
/* Tell the handler to turn on or off logging to the handler's
recovery log
/*
Tell the handler to turn on or off logging to the handler's recovery log
*/
int ha_recovery_logging(THD *thd, bool on)
{
int error=0;
@@ -914,7 +917,6 @@ int handler::delete_all_rows()
int ha_create_table(const char *name, HA_CREATE_INFO *create_info,
bool update_create_info)
{
int error;
TABLE table;