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

REFRESH_CHECKPOINT and REFRESH_TABLE_STATS tokens share the same value

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0.0, 5.5.28
    • 10.0.1, 5.5.29
    • None
    • None

    Description

      As can be seen at http://bazaar.launchpad.net/~maria-captains/maria/10.0/annotate/head:/include/mysql_com.h#L159

      in paricular:

      #define REFRESH_CHECKPOINT	0x100000L
      #define REFRESH_TABLE_STATS     (1L << 20)

      two constants got the same value (presumably during a merge). This makes mysqld confuse these options when processing the FLUSH command.

      Incrementing shifts for REFRESH_TABLE_STATS and following constants seems to solve the issue.

      I'm not sure about how to use bzr correctly, by my suggested patch with a test case is at https://code.launchpad.net/~varavv/maria/maria-fix-conflicting-refresh-opts and in attachment.

      Attachments

        Activity

          yvaravva Ievgen Varavva created issue -
          serg Sergei Golubchik made changes -
          Field Original Value New Value
          Affects Version/s 5.5.28 [ 11200 ]
          Affects Version/s 10.0.0 [ 10000 ]
          serg Sergei Golubchik made changes -
          Priority Minor [ 4 ] Major [ 3 ]
          serg Sergei Golubchik made changes -
          Fix Version/s 10.0.1 [ 11400 ]
          Fix Version/s 5.5.29 [ 11701 ]

          Thank you very much for spotting this and for the patch!

          serg Sergei Golubchik added a comment - Thank you very much for spotting this and for the patch!
          serg Sergei Golubchik made changes -
          Fix Version/s 5.5.29 [ 12102 ]
          Fix Version/s 5.5.28a [ 11701 ]
          serg Sergei Golubchik made changes -
          Assignee Sergei Golubchik [ serg ]
          serg Sergei Golubchik made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          serg Sergei Golubchik made changes -
          Description As can be seen at http://bazaar.launchpad.net/~maria-captains/maria/10.0/annotate/head:/include/mysql_com.h#L159

          in paricular:

          #define REFRESH_CHECKPOINT 0x100000L
          #define REFRESH_TABLE_STATS (1L << 20)

          two constants got the same value (presumably during a merge). This makes mysqld confuse these options when processing the FLUSH command.

          Incrementing shifts for REFRESH_TABLE_STATS and following constants seems to solve the issue.

          I'm not sure about how to use bzr correctly, by my suggested patch with a test case is at https://code.launchpad.net/~varavv/maria/maria-fix-conflicting-refresh-opts and in attachment.
          As can be seen at http://bazaar.launchpad.net/~maria-captains/maria/10.0/annotate/head:/include/mysql_com.h#L159

          in paricular:
          {noformat}
          #define REFRESH_CHECKPOINT 0x100000L
          #define REFRESH_TABLE_STATS (1L << 20)
          {noformat}
          two constants got the same value (presumably during a merge). This makes mysqld confuse these options when processing the FLUSH command.

          Incrementing shifts for REFRESH_TABLE_STATS and following constants seems to solve the issue.

          I'm not sure about how to use bzr correctly, by my suggested patch with a test case is at https://code.launchpad.net/~varavv/maria/maria-fix-conflicting-refresh-opts and in attachment.
          serg Sergei Golubchik made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 25103 ] MariaDB v2 [ 45569 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 45569 ] MariaDB v3 [ 66252 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 66252 ] MariaDB v4 [ 146193 ]

          People

            serg Sergei Golubchik
            yvaravva Ievgen Varavva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.