summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 99c2b837480..9306a6d4d9a 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -1192,12 +1192,6 @@ 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));
}
@@ -1704,7 +1698,6 @@ end_temporary:
DBUG_RETURN(0);
err:
- (void) ha_commit_rename(thd); // Just for safety
DBUG_RETURN(-1);
}