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

MySQL Bug#13819100 BROKEN SYNTAX ACCEPTED FOR START SLAVE, STOP SLAVE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.0.10
    • Fix Version/s: 10.0
    • Component/s: None
    • Labels:
      None

      Description

      revno: 3690.1.38
      committer: Marc Alff <marc.alff@oracle.com>
      branch nick: mysql-trunk-bug13819100
      timestamp: Wed 2012-03-07 17:15:16 +0100
      message:
        Bug#13819100 BROKEN SYNTAX ACCEPTED FOR START SLAVE, STOP SLAVE
       
        Before this fix, the parser accepted the following syntax for STOP SLAVE:
       
        STOP SLAVE ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ;
       
        The root cause was the bison grammar for rule slave_thread_opts,
        which produced a list of "SQL_THREAD", "RELAY_THREAD" or (empty string),
        separated by ",".
       
        The grammar has been fixed so that the grammar rule is:
        - either en empty string
        - or a list of "SQL_THREAD", "RELAY_THREAD" separated by ",".
        which is the proper syntax.
       
        In addition, the grammar rules have been cleaned up, so that, when practical:
        - (a) using the bison internal stack ($$, $1, etc) is preferred
        - (b) setting global variables in rules, as in Lex->slave_thd_opt= ...
          is avoided
        Bison is an ascendent parser, for which the natural pattern in (a).
        Pattern (b) is for descendent parsers, and mixing both concepts is a bad
        idea.
       
        Note that using the same option multiple times in the list is tolerated,
        as before, and interpreted as a single option (no change).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              svoj Sergey Vojtovich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: