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

REFRESH_CHECKPOINT and REFRESH_TABLE_STATS tokens share the same value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.0, 5.5.28
    • Fix Version/s: 10.0.1, 5.5.29
    • Component/s: None
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment -

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

            Show
            serg Sergei Golubchik added a comment - Thank you very much for spotting this and for the patch!

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 20 minutes Time Not Required
                  20m