Skip to content

Commit b71c9ae

Browse files
committed
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.
1 parent c612a1e commit b71c9ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/innobase/os/os0file.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4326,6 +4326,7 @@ os_file_create_func(
43264326
&& !unbuffered_io_possible(file, OS_FILE_LOG_BLOCK_SIZE)) {
43274327
ut_a(CloseHandle(file));
43284328
attributes &= ~FILE_FLAG_NO_BUFFERING;
4329+
create_flag = OPEN_ALWAYS;
43294330
continue;
43304331
}
43314332

0 commit comments

Comments
 (0)