diff options
Diffstat (limited to 'storage/innobase/fsp/fsp0sysspace.cc')
-rw-r--r-- | storage/innobase/fsp/fsp0sysspace.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/innobase/fsp/fsp0sysspace.cc b/storage/innobase/fsp/fsp0sysspace.cc index 56ef4959690..4c3507538c7 100644 --- a/storage/innobase/fsp/fsp0sysspace.cc +++ b/storage/innobase/fsp/fsp0sysspace.cc @@ -396,8 +396,8 @@ SysTablespace::set_size( /* We created the data file and now write it full of zeros */ ib::info() << "Setting file '" << file.filepath() << "' size to " - << (file.m_size >> (20U - srv_page_size_shift)) << " MB." - " Physically writing the file full; Please wait ..."; + << ib::bytes_iec{file.m_size << srv_page_size_shift} << + ". Physically writing the file full; Please wait ..."; bool success = os_file_set_size( file.m_filepath, file.m_handle, @@ -405,8 +405,8 @@ SysTablespace::set_size( if (success) { ib::info() << "File '" << file.filepath() << "' size is now " - << (file.m_size >> (20U - srv_page_size_shift)) - << " MB."; + << ib::bytes_iec{file.m_size << srv_page_size_shift} + << "."; } else { ib::error() << "Could not set the file size of '" << file.filepath() << "'. Probably out of disk space"; |