File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -737,11 +737,9 @@ fil_node_open_file(
737
737
}
738
738
}
739
739
740
- if (size_bytes >= FSP_EXTENT_SIZE * UNIV_PAGE_SIZE ) {
740
+ if (size_bytes >= ( 1024 * 1024 ) ) {
741
741
/* Truncate the size to whole extent size. */
742
- size_bytes = ut_2pow_round (size_bytes,
743
- FSP_EXTENT_SIZE *
744
- UNIV_PAGE_SIZE);
742
+ size_bytes = ut_2pow_round (size_bytes, (1024 *1024 ));
745
743
}
746
744
747
745
if (!fsp_flags_is_compressed (flags)) {
Original file line number Diff line number Diff line change @@ -739,11 +739,9 @@ fil_node_open_file(
739
739
}
740
740
}
741
741
742
- if (size_bytes >= FSP_EXTENT_SIZE * UNIV_PAGE_SIZE ) {
742
+ if (size_bytes >= ( 1024 * 1024 ) ) {
743
743
/* Truncate the size to whole extent size. */
744
- size_bytes = ut_2pow_round (size_bytes,
745
- FSP_EXTENT_SIZE *
746
- UNIV_PAGE_SIZE);
744
+ size_bytes = ut_2pow_round (size_bytes, (1024 *1024 ));
747
745
}
748
746
749
747
if (!fsp_flags_is_compressed (flags)) {
@@ -5683,7 +5681,7 @@ fil_space_get_node(
5683
5681
/* Found! */
5684
5682
break ;
5685
5683
} else {
5686
- *block_offset -= node->size ;
5684
+ ( *block_offset) -= node->size ;
5687
5685
node = UT_LIST_GET_NEXT (chain, node);
5688
5686
}
5689
5687
}
You can’t perform that action at this time.
0 commit comments