summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@oracle.com>2011-10-27 14:58:12 +0300
committerMarko Mäkelä <marko.makela@oracle.com>2011-10-27 14:58:12 +0300
commit1d9c841c3bd1aea647127d39836429a9a0e4f03a (patch)
treef362c76636b25fc660ae6cf22f53db609ec1d841
parent006f649f4b13060a79e05f69eae8e44e0c1b0e0a (diff)
downloadmariadb-git-1d9c841c3bd1aea647127d39836429a9a0e4f03a.tar.gz
Bug #12884631 62146: TABLES ARE LOST FOR DDL
row_rename_table_for_mysql(): Return DB_ERROR instead of DB_SUCCESS when fil_rename_tablespace() returns an error. This bug was introduced in the InnoDB Plugin. Approved by Sunny Bains over IM.
-rw-r--r--storage/innodb_plugin/ChangeLog5
-rw-r--r--storage/innodb_plugin/row/row0mysql.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/storage/innodb_plugin/ChangeLog b/storage/innodb_plugin/ChangeLog
index 68f60c37f1f..5a4ef5fa4ef 100644
--- a/storage/innodb_plugin/ChangeLog
+++ b/storage/innodb_plugin/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-27 The InnoDB Team
+
+ * row/row0mysql.c:
+ Fix Bug #12884631 62146: TABLES ARE LOST FOR DDL
+
2011-10-20 The InnoDB Team
* btr/brt0cur.c:
diff --git a/storage/innodb_plugin/row/row0mysql.c b/storage/innodb_plugin/row/row0mysql.c
index 4e6a49cf8b0..6f689f9909d 100644
--- a/storage/innodb_plugin/row/row0mysql.c
+++ b/storage/innodb_plugin/row/row0mysql.c
@@ -1,6 +1,6 @@
/*****************************************************************************
-Copyright (c) 2000, 2010, Innobase Oy. All Rights Reserved.
+Copyright (c) 2000, 2011, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -3971,6 +3971,7 @@ end:
trx->error_state = DB_SUCCESS;
trx_general_rollback_for_mysql(trx, NULL);
trx->error_state = DB_SUCCESS;
+ err = DB_ERROR;
goto funct_exit;
}