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( ...@@ -3721,7 +3721,7 @@ fil_ibd_create(
return(DB_ERROR); return(DB_ERROR);
} }
bool is_compressed = FSP_FLAGS_HAS_PAGE_COMPRESSION(flags); const bool is_compressed = FSP_FLAGS_HAS_PAGE_COMPRESSION(flags);
#ifdef _WIN32 #ifdef _WIN32
if (is_compressed) { if (is_compressed) {
...@@ -3729,10 +3729,9 @@ fil_ibd_create( ...@@ -3729,10 +3729,9 @@ fil_ibd_create(
} }
#endif #endif
success = os_file_set_size(path, file, success = os_file_set_size(
os_offset_t(size)*UNIV_PAGE_SIZE, path, file,
FSP_FLAGS_HAS_PAGE_COMPRESSION(flags)); os_offset_t(size) << UNIV_PAGE_SIZE_SHIFT, is_compressed);
if (!success) { if (!success) {
os_file_close(file); 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