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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • 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).

        Attachments

          Activity

            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:

                Git Integration

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