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

Renaming files may not be filesystem-crash-safe

    XMLWordPrintable

Details

    Description

      MDEV-14717 made rename operations inside InnoDB transactional and crash-safe in case the server process is killed.

      However, the file-renaming operations might not be carried out in a fashion that guarantees crash-safety in a case that involves file system recovery.

      To be safe, we should probably do fsync() of the file and the directory containing it, followed by the rename(), and finally an fsync() of the file and of its containing directory. This should be done both inside storage engines and in code that deals with .frm files and the like.

      Attachments

        Issue Links

          Activity

            People

              monty Michael Widenius
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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