Issue Details (XML | Word | Printable)

Key: CORE-3588
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Alexander Peshkov
Reporter: Ann Harrison
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Firebird Core

More detail in message "wrong page type"

Created: 29/Aug/11 07:12 PM   Updated: 18/Jan/16 05:08 PM
Component/s: Engine
Affects Version/s: None
Fix Version/s: 3.0 Alpha 1

Environment: All

Target: 3.0 Beta 1
QA Status: No test


 Description  « Hide
Twenty years ago, concise error messages made some sense, but diagnosing the wrong page type errors would be much easier if Firebird said "expected Index Page, encountered Data Page" rather than "expected <n> encountered <m>" - at least it would save me looking up the page types each time. Probably not worth much since those errors are mostly found in older versions, but still, if one realized that something that should have been an index page was something else, then there would be a clue that the workaround would be to rebuild the index. Hey, maybe even include the name of the index and table...

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Dimitry Sibiryakov added a comment - 29/Aug/11 07:23 PM
If page type has unexpected value, who knows what else is damaged. If the page is completely filled with garbage, attempt to resolve value like 123 into page type will cause crash in absence of additional check.

Ann Harrison added a comment - 29/Aug/11 09:59 PM
Yes, it would be wise to have a choice for "unknown page type." sorry I wasn't more specific.