Skip to content

MDEV-41942 CHECK TABLE EXTENDED validates InnoDB field lengths - #6148

Open
omda777 wants to merge 2 commits into
MariaDB:11.4from
omda777:bb-11.4-MDEV-41942
Open

omda777 wants to merge 2 commits into
MariaDB:11.4from
omda777:bb-11.4-MDEV-41942

Conversation

@omda777

@omda777 omda777 commented Nov 14, 2026

Copy link
Copy Markdown

Jira issue: MDEV-41942

CHECK TABLE ... EXTENDED did not detect corrupted variable-length field encodings or a mismatch between an externally stored BLOB's claimed length and its BLOB page chain.

This change validates logical field lengths during the extended InnoDB
check, validates external-field references and their complete BLOB
chains, and reports the index as corrupted when validation fails.

Tests cover:

  • a corrupted VARCHAR length stored in a clustered record
  • a corrupted claimed length in an externally stored BLOB reference

Signed-off-by: Abdelrahman Emad <abdoemad0120@gmail.com>
Signed-off-by: Abdelrahman Emad <abdoemad0120@gmail.com>
@CLAassistant

CLAassistant commented Nov 14, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants