You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug#26960215 : EXPORT/IMPORT IS CRASHING WITH TABLE CREATED IN REDUNDANT ROW
FORMAT
Background:
After copying ibd file from source server datadir to destination server
datadir, during import, we traverse every page of ibd file and reset some
information (like space_id, TRX_ID, ROLL_PTR etc.). TRX_ID and ROLL_PTR
should be reset only for leaf pages where actual table records exist.
Issue:
In case of new row format (eg: dynamic), this is being done by checking the
record status which will be REC_STATUS_NODE_PTR for a non-leaf page record.
If its REC_STATUS_NODE_PTR, then this page is skipped for TRX_ID and
ROLL_PTR.
But in case of old format (REDUNDANT) this is not done and thus TRX_ID and
ROLL_PTR are written on non-leaf page records causing correct data on page
to be over written. Which leads to memory corruption.
Fix:
Make sure TRX_ID, ROLL_PTR are skipped for non-leaf pages irrespective of
row format.
Reviewed-by: [email protected]
RB: 18832
0 commit comments