[MDEV-4165] [PATCH] RFE: make tmpdir a build-time configurable option Created: 2013-02-11  Updated: 2013-08-18  Resolved: 2013-08-18

Status: Closed
Project: MariaDB Server
Component/s: None
Fix Version/s: 5.5.33

Type: Task Priority: Major
Reporter: Honza Horak Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Attachments: File mysql-tmpdir.patch    

 Description   

Background: Some distributions use tmpfs for mounting /tmp by default, which has some advantages, but brings also new issues. Fedora started using tmpfs on /tmp in version 18 for example. If not configured otherwise in my.cnf, MySQL/MariaDB uses system's constant P_tmpdir expanded to /tmp on Linux. This can introduce some problems with limited space in /tmp and also some data loss in case of replication slave [1].

In case distributions would like to use /var/tmp, which should be better for MySQL/MariaDB purposes, then we have to patch the source or change tmpdir option in my.cnf, which is however not updated in case it has already existed.

Thus, it would be useful to be able to specify default tmpdir path using a configure option, while using P_tmpdir in case it is not defined explicitly. I've created such patch, so feel free to comment or apply it.

[1] http://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_tmpdir



 Comments   
Comment by Honza Horak [ 2013-02-11 ]

I've sent the same patch also to MySQL: http://bugs.mysql.com/bug.php?id=68338

Generated at Thu Feb 08 06:54:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.