Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-875

LP #1426610: mtr is not committed if detect corruption in btr_estimate_number_of_different_key_vals

    Details

      Description

      **Reported in Launchpad by zhai weixiang last update 09-09-2015 06:22:23

      Version : percona-server-5.6.22-71.0

      Check the function btr_estimate_number_of_different_key_vals:

      4118 for (i = 0; i < n_sample_pages; i++) {
      4119 mtr_start(&mtr);
      4120
      4121 btr_cur_open_at_rnd_pos(index, BTR_SEARCH_LEAF, &cursor, &mtr);
      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_get_page(&cursor);
      4130
      4131 SRV_CORRUPT_TABLE_CHECK(page, goto exit_loop;

      If found a corrupted page, it will goto exit_loop, and the mtr is not committed.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lpjirasync lpjirasync (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: