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

LP #791092: dict_store_statistics() should commit mtr for each record's update

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      **Reported in Launchpad by Yasufumi Kinoshita last update 13-06-2012 04:58:02

      dict_store_statistics() (called when innodb_use_sys_stats_table is enabled)
      updates several records in SYS_STATS on 1 mtr.

      But, "btr_pcur_move_to_next_user_rec(&pcur, &mtr);" might release the x_lock of the block and might cause problem.

      So, need
      "
      mtr_commit(&mtr);
      mtr_start(&mtr);
      btr_pcur_restore_position(BTR_MODIFY_LEAF, &pcur, &mtr);
      "
      for each change.

        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: