summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2018-07-01 13:55:38 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2018-07-01 14:00:29 +0100
commitb71c9ae030ecafb31bc0b424a19d1354f2dd424b (patch)
tree938f654d231564046c25cfb0a1f922af76f13916
parentc612a1e77c36abe08576d67de30b7e45365cad30 (diff)
downloadmariadb-git-b71c9ae030ecafb31bc0b424a19d1354f2dd424b.tar.gz
amend fix for MDEV-16596 - do not use CREATE_NEW flag when reopening redo log file.
use OPEN_ALWAYS instead, since we know file already exist.
-rw-r--r--storage/innobase/os/os0file.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc
index 45fb04600f3..9853263600e 100644
--- a/storage/innobase/os/os0file.cc
+++ b/storage/innobase/os/os0file.cc
@@ -4326,6 +4326,7 @@ os_file_create_func(
&& !unbuffered_io_possible(file, OS_FILE_LOG_BLOCK_SIZE)) {
ut_a(CloseHandle(file));
attributes &= ~FILE_FLAG_NO_BUFFERING;
+ create_flag = OPEN_ALWAYS;
continue;
}