1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Add support for Gemini table handler, Monty has checked and approved

Fix bug when read return error
This commit is contained in:
mikef@nslinux.bedford.progress.com
2001-03-21 15:34:16 -05:00
parent 3c48448042
commit d145a6b97e
24 changed files with 3946 additions and 24 deletions

View File

@ -1170,6 +1170,12 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
if (mysql_rename_table(old_db_type,db,table_name,new_db,new_name))
error= -1;
}
if (!error && (error=ha_commit_rename(thd)))
{
my_error(ER_GET_ERRNO,MYF(0),error);
error=1;
}
VOID(pthread_cond_broadcast(&COND_refresh));
VOID(pthread_mutex_unlock(&LOCK_open));
if (!error)
@ -1603,6 +1609,7 @@ end_temporary:
DBUG_RETURN(0);
err:
(void) ha_commit_rename(thd); // Just for safety
DBUG_RETURN(-1);
}