Commit 59a266a9 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-17380: fix incorrect #ifdef

parent c477623f
...@@ -72,8 +72,12 @@ Created 10/21/1995 Heikki Tuuri ...@@ -72,8 +72,12 @@ Created 10/21/1995 Heikki Tuuri
#ifdef _WIN32 #ifdef _WIN32
#include <winioctl.h> #include <winioctl.h>
#else
// my_test_if_atomic_write()
#include <my_sys.h>
#endif #endif
/** Insert buffer segment id */ /** Insert buffer segment id */
static const ulint IO_IBUF_SEGMENT = 0; static const ulint IO_IBUF_SEGMENT = 0;
...@@ -7661,7 +7665,7 @@ void fil_node_t::find_metadata(os_file_t file ...@@ -7661,7 +7665,7 @@ void fil_node_t::find_metadata(os_file_t file
if (!space->atomic_write_supported) { if (!space->atomic_write_supported) {
space->atomic_write_supported = atomic_write space->atomic_write_supported = atomic_write
&& srv_use_atomic_writes && srv_use_atomic_writes
#ifdef _WIN32 #ifndef _WIN32
&& my_test_if_atomic_write(file, && my_test_if_atomic_write(file,
space->physical_size()) space->physical_size())
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment