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

Do not leave stale master-bin.info binlog state file

    Details

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

      Description

      The master-bin.info file records the binlog state across normal server
      restarts (not crashes) to avoid the overhead of scanning last binlog file at
      server start.

      But we should delete the file as soon as it is read so there is no risk of
      errorneously (in server code or by user) reading out-of date information from
      it (eg. RESET MASTER for example).

      In addition, it might be useful to read the file (if present) at server start
      even if binlog files are gone (this allows to recover the binlog state even if
      binlog files are intentionally omitted from a cold backup).

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            knielsen Kristian Nielsen added a comment -

            Pushed to 10.0-base.

            Show
            knielsen Kristian Nielsen added a comment - Pushed to 10.0-base.

              People

              • Assignee:
                knielsen Kristian Nielsen
                Reporter:
                knielsen Kristian Nielsen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: