[MDEV-21142] Correct COMPRESSED_REC_MAX_DATA_SIZE constant in InnoDB Created: 2019-11-25 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Eugene Kosov (Inactive) | Assignee: | Marko Mäkelä |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
COMPRESSED_REC_MAX_DATA_SIZE is actually COMPRESED_REC_UPPER_BOUND_DATA_SIZE. Both constants should have the same value to prevent off-by-one error like in this code: https://github.com/MariaDB/server/blob/a51f3b09bb99f2927ce107727316caac2c426eb1/storage/innobase/include/page0zip.ic#L182 |