|
I believe that is_page_corrupted() in innochecksum() should be refined and tested a little more:
- It should check that all tablespace ID on the nonzero pages of a data file are the same.
- Test with a multi-file system tablespace. Other than the first files could start with all-zero pages, so we would seem to need the following kind of logic:
- Read the tablespace ID and page number from the first not-all-zero page. (We may have to assume innodb_page_size=16k in this case.)
- For subsequent not-all-zero pages, the tablespace ID must match, and the page number must be consistent.
OK to push after these changes.
|