Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3103

LP:933117 - Wrong use_count reported by the range optimizer

    Details

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

      Description

      The bug #58731 from bugs.mysql.com is reproducible in mariadb-5.2.

      When executing the following simple test case

      create table t1 (a int, b int, c int, key idx (a,c,b));
      insert into t1 values (0,0,0), (0,0,0);
      select 1 from t1 force index (idx) where a >=1 and b <= 1 and a=c and c > 1;

      the debug build of the mariadb-5.2 server reports:

      [Note] Use_count: Wrong count for key at 0x2279948, 0 should be 1.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            igor Igor Babaev added a comment -

            Re: Wrong use_count reported by the range optimizer
            The same bug is reproducible for the latest debug versions of mysql-5.1 and mysql-5.5.

            The bug is not reproducible in mariadb-5.3 and mariadb-5.5 due to the changes in the function
            key_and() made in the patch for bug #800184.

            Show
            igor Igor Babaev added a comment - Re: Wrong use_count reported by the range optimizer The same bug is reproducible for the latest debug versions of mysql-5.1 and mysql-5.5. The bug is not reproducible in mariadb-5.3 and mariadb-5.5 due to the changes in the function key_and() made in the patch for bug #800184.
            Hide
            elenst Elena Stepanova added a comment -

            Re: Wrong use_count reported by the range optimizer
            Fix released in 5.2.11

            Show
            elenst Elena Stepanova added a comment - Re: Wrong use_count reported by the range optimizer Fix released in 5.2.11
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 933117

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 933117

              People

              • Assignee:
                igor Igor Babaev
                Reporter:
                igor Igor Babaev
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: