From a2a18beae925fc1a80ada24911fef839c2acbab2 Mon Sep 17 00:00:00 2001 From: Elshad Aghazade Date: Sat, 5 Nov 2016 02:28:38 +0400 Subject: [PATCH] Update fil0fil.cc --- storage/innobase/fil/fil0fil.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/storage/innobase/fil/fil0fil.cc b/storage/innobase/fil/fil0fil.cc index 9755ef2..1131bf0 100644 --- a/storage/innobase/fil/fil0fil.cc +++ b/storage/innobase/fil/fil0fil.cc @@ -3394,6 +3394,14 @@ fil_create_new_single_table_tablespace( remote directory, let's create the subdirectories in the path, if they are not there already. */ success = os_file_create_subdirs_if_needed(path); + + // bug fix for http://bugs.mysql.com/bug.php?id=79151 + if(!success && errno) { + my_error(ER_GET_ERRNO, MYF(0), errno); + mem_free(path); + return(DB_ERROR); + } + if (!success) { err = DB_ERROR; goto error_exit_3;