Commit f6fcf827 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-28111 fixup: Correct the start-up message

By default, we should say "InnoDB: Buffered log writes" instead of
"InnoDB: File system buffers for log disabled" if we are able to
determine the physical block size on Linux.
parent 5c11e7ee
......@@ -223,7 +223,9 @@ void log_t::attach(log_file_t file, os_offset_t size)
if (!block_size)
set_block_size(512);
# ifdef __linux__
else if (srv_file_flush_method != SRV_O_DSYNC)
else if (srv_file_flush_method != SRV_O_DSYNC &&
srv_file_flush_method != SRV_O_DIRECT &&
srv_file_flush_method != SRV_O_DIRECT_NO_FSYNC)
sql_print_information("InnoDB: Buffered log writes (block size=%u bytes)",
block_size);
#endif
......
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