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

Setting log-basename in my.cnf will ignore pid-file and log-error settings

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.0.15
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Gentoo

      Description

      Simply by adding "log-basename = master" to a my.cnf file, the definitions for pid-file and log-error are ignored.

      This may include other settings as well but I cannot confirm that.

      How to repeat:

      my.cnf
      pid-file=/var/run/mysqld/mysqld.pid
      log-error=/var/log/mysql/mysqld.err
      log-basename = master
      

      Expected results:
      /var/run/mysqld/mysqld.pid and /var/log/mysql/mysqld.err to be written to.

      Actual results:
      $DATADIR/master.pid and $DATADIR/master.err are created and written to

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            grknight Brian Evans added a comment -

            putting log-basename first works as expected

            Show
            grknight Brian Evans added a comment - putting log-basename first works as expected
            Hide
            elenst Elena Stepanova added a comment -

            I think it's natural behavior, consistent with how server options are treated in general. You have one option that sets the value for a variable, then you have another one that contradicts the first one, so the first one gets ignored and the later one is used.

            Assigning to Michael Widenius (as the author of the option) to confirm.

            Show
            elenst Elena Stepanova added a comment - I think it's natural behavior, consistent with how server options are treated in general. You have one option that sets the value for a variable, then you have another one that contradicts the first one, so the first one gets ignored and the later one is used. Assigning to Michael Widenius (as the author of the option) to confirm.

              People

              • Assignee:
                monty Michael Widenius
                Reporter:
                grknight Brian Evans
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: