Commit 953db42
committed
Bug #21640679 ONLINE ALTER CRASHES FOR 4K PAGE SIZE
WHEN THERE IS NO FREE EXTENT
Problem:
=======
When a new extent is allocated to a tablespace, its xdes entry will
be put onto the FSP_FREE segment list. But extent happens to contain
an extent descriptor page, then the extent is put into FSP_FREE_FRAG list.
Still tablespace won't find any extent in FREE_LIST. It happens only
when less than or equal to 4kb page size is used, because once the tablespace
grows to 32 extent size or 32 MB then 4 extents are allocated at a time rather
than one. For page size less than 4k only, allocation of extent contains extent
descriptor page before reaching 32 extent or MB.
Fix:
===
Once the tablespace size reaches page_size page then allocate 4 extent
at a time.
Reviewed-by: Annamalai Gurusami <[email protected]>
Reviewed-by: Jimmy Yang <[email protected]>
RB: 102671 parent 8fbefe8 commit 953db42
File tree
2 files changed
+25
-7
lines changed- mysql-test/suite/innodb_zip/r
- storage/innobase/fsp
2 files changed
+25
-7
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
952 | 952 | | |
953 | 953 | | |
954 | 954 | | |
955 | | - | |
956 | | - | |
957 | | - | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
958 | 964 | | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
959 | 969 | | |
960 | 970 | | |
961 | 971 | | |
| |||
964 | 974 | | |
965 | 975 | | |
966 | 976 | | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
967 | 985 | | |
968 | 986 | | |
969 | 987 | | |
| |||
980 | 998 | | |
981 | 999 | | |
982 | 1000 | | |
983 | | - | |
| 1001 | + | |
984 | 1002 | | |
985 | 1003 | | |
986 | 1004 | | |
| |||
0 commit comments