summaryrefslogtreecommitdiff
path: root/storage/innobase/srv
diff options
context:
space:
mode:
authorJulius Goryavsky <julius.goryavsky@mariadb.com>2021-12-25 12:13:03 +0100
committerJulius Goryavsky <julius.goryavsky@mariadb.com>2021-12-25 12:13:03 +0100
commit681b7784b6bb3d735d0a745f5891844f43becc90 (patch)
treecf072815378bb9b9814ec504826bb2b6161edb80 /storage/innobase/srv
parent4b020bfd9a10f991845b995780db4879f8c9f61d (diff)
parent97695675c5db88eb7f2e0249dd693f070de16f06 (diff)
downloadmariadb-git-681b7784b6bb3d735d0a745f5891844f43becc90.tar.gz
Merge branch 10.3 into 10.4
Diffstat (limited to 'storage/innobase/srv')
-rw-r--r--storage/innobase/srv/srv0start.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/storage/innobase/srv/srv0start.cc b/storage/innobase/srv/srv0start.cc
index 18b0cbba395..acd0ca8bb03 100644
--- a/storage/innobase/srv/srv0start.cc
+++ b/storage/innobase/srv/srv0start.cc
@@ -418,6 +418,10 @@ create_log_files(
return(DB_READ_ONLY);
}
+ if (!log_set_capacity(srv_log_file_size_requested)) {
+ return(DB_ERROR);
+ }
+
/* Crashing after deleting the first file should be
recoverable. The buffer pool was clean, and we can simply
create all log files from the scratch. */
@@ -474,9 +478,6 @@ create_log_files(
}
log_sys.log.create(srv_n_log_files);
- if (!log_set_capacity(srv_log_file_size_requested)) {
- return(DB_ERROR);
- }
fil_open_log_and_system_tablespace_files();
@@ -1635,6 +1636,12 @@ dberr_t srv_start(bool create_new_db)
logfilename, dirnamelen, flushed_lsn, logfile0);
if (err != DB_SUCCESS) {
+ for (Tablespace::const_iterator
+ i = srv_sys_space.begin();
+ i != srv_sys_space.end(); i++) {
+ os_file_delete(innodb_data_file_key,
+ i->filepath());
+ }
return(srv_init_abort(err));
}
} else {