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.
This commit is contained in:
Marko Mäkelä 2022-03-18 15:27:57 +02:00
parent 5c11e7eead
commit f6fcf827b3

View file

@ -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