[MDEV-13899] IMPORT TABLESPACE may corrupt ROW_FORMAT=REDUNDANT tables Created: 2017-09-24 Updated: 2018-05-11 Resolved: 2017-09-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 10.0 |
| Fix Version/s: | 10.0.33, 10.1.28, 10.2.9, 10.3.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | corruption, upstream | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
This old bug was noticed during
What is the impact of this bug? As noted in Also, we could fail to purge some delete-marked leaf page records for which rec_get_status() happens to return REC_STATUS_NODE_PTR. If this happens in a secondary index, it could trigger When does rec_get_status(rec)==REC_STATUS_NODE_PTR hold on a ROW_FORMAT=REDUNDANT record? rec_get_status() reads the bits rec[-3]&7:
The predicate holds when the number of fields is divisible by 4, and the 'short flag' is set. Note that the number of fields typically differs between node pointer and leaf page records. It looks like this regression was introduced in MySQL 5.6.6. |