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

Linux - use O_TMPFILE for create_temp_file

    XMLWordPrintable

    Details

      Description

      This pr, branched from #639, uses the Linux the open(2) O_TMPFILE option to create an already delete temporary.

      With this option we don't need to delete the created file and for convenience we don't use my_register_filename to allocate string copies of names (as an aside - is this really still needed in the code? Seems only there for debugging).

      As such we don't need to dup in innobase_mysql_tmpfile.

      Like the my_register_filename, we do increase statistic counters like #657.

      If the open(O_TMPFILE) fails, unsupported filesystem for instance, fall back to mk{,o}stemp

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serg Sergei Golubchik
              Reporter:
              svoj Sergey Vojtovich
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: