summaryrefslogtreecommitdiff
path: root/storage/innobase
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-06-26 12:07:17 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-07-18 17:01:59 +0300
commitadbab0d4cd80b10a1176f1ce8561aff3d5875a02 (patch)
tree1438c2ad697edf6170ba10164a4a468e5d2f1851 /storage/innobase
parent10ebdb7f1d7a3f6aa6a91b40a9d90f482da08e58 (diff)
downloadmariadb-git-adbab0d4cd80b10a1176f1ce8561aff3d5875a02.tar.gz
MDEV-13625: Add the test innodb.innodb-wl5980-debug
Diffstat (limited to 'storage/innobase')
-rw-r--r--storage/innobase/fil/fil0fil.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/innobase/fil/fil0fil.cc b/storage/innobase/fil/fil0fil.cc
index 8c4e1db6f51..7234a6c4102 100644
--- a/storage/innobase/fil/fil0fil.cc
+++ b/storage/innobase/fil/fil0fil.cc
@@ -3216,8 +3216,13 @@ fil_rename_tablespace(
space, node, new_name, new_path);
if (success) {
+ DBUG_EXECUTE_IF("fil_rename_tablespace_failure_2",
+ goto skip_second_rename; );
success = os_file_rename(
innodb_file_data_key, old_path, new_path);
+ DBUG_EXECUTE_IF("fil_rename_tablespace_failure_2",
+skip_second_rename:
+ success = FALSE; );
if (!success) {
/* We have to revert the changes we made