Commit 18a979df authored by Marko Mäkelä's avatar Marko Mäkelä

Fix a warning about unused variable

fil_ibd_create(): commit b731a5bc
introduced a variable that was unused outside Windows. Use it
on all platforms.
parent a0df2693
......@@ -3721,7 +3721,7 @@ fil_ibd_create(
return(DB_ERROR);
}
bool is_compressed = FSP_FLAGS_HAS_PAGE_COMPRESSION(flags);
const bool is_compressed = FSP_FLAGS_HAS_PAGE_COMPRESSION(flags);
#ifdef _WIN32
if (is_compressed) {
......@@ -3729,10 +3729,9 @@ fil_ibd_create(
}
#endif
success = os_file_set_size(path, file,
os_offset_t(size)*UNIV_PAGE_SIZE,
FSP_FLAGS_HAS_PAGE_COMPRESSION(flags));
success = os_file_set_size(
path, file,
os_offset_t(size) << UNIV_PAGE_SIZE_SHIFT, is_compressed);
if (!success) {
os_file_close(file);
......
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