mtr is not committed if detect corruption in btr_estimate_number_of_different_key_vals
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
High
|
Krunal Bauskar | ||
5.1 |
Invalid
|
Undecided
|
Unassigned | ||
5.5 |
Fix Released
|
High
|
Krunal Bauskar | ||
5.6 |
Fix Released
|
High
|
Krunal Bauskar |
Bug Description
Version : percona-
Check the function btr_estimate_
4118 for (i = 0; i < n_sample_pages; i++) {
4119 mtr_start(&mtr);
4120
4121 btr_cur_
4122
4123 /* Count the number of different key values for each prefix of
4124 the key on this index page. If the prefix does not determine
4125 the index record uniquely in the B-tree, then we subtract one
4126 because otherwise our algorithm would give a wrong estimate
4127 for an index where there is just one key value. */
4128
4129 page = btr_cur_
4130
4131 SRV_CORRUPT_
If found a corrupted page, it will goto exit_loop, and the mtr is not committed.
tags: | added: xtradb |
Thank you for the report.
Verified as described using source code analysis.