Bug #68338 | RFE: make tmpdir a build-time configurable option | ||
---|---|---|---|
Submitted: | 11 Feb 2013 14:06 | Modified: | 14 Jan 2014 16:54 |
Reporter: | Honza Horak (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S4 (Feature request) |
Version: | 5.5.29 | OS: | Linux |
Assigned to: | Tor Didriksen | CPU Architecture: | Any |
[11 Feb 2013 14:06]
Honza Horak
[12 Feb 2013 11:44]
MySQL Verification Team
Thank you for a feature request and contribution. Another related feature is http://bugs.mysql.com/bug.php?id=53119
[14 Jan 2014 16:54]
Paul DuBois
Noted in 5.5.36, 5.6.16, 5.7.4 changelogs. CMake now supports a -DTMPDIR=dir_name option to specify the default tmpdir value. If unspecified, the value defaults to P_tmpdir in <stdio.h>.
[15 Jan 2014 16:27]
Paul DuBois
Thanks to Honza Horak for the patch.
[2 Feb 2014 17:44]
Laurynas Biveinis
5.5$ bzr log -r 4563 ------------------------------------------------------------ revno: 4563 committer: Tor Didriksen <tor.didriksen@oracle.com> branch nick: 5.5 timestamp: Wed 2013-12-18 11:05:18 +0100 message: Bug#16316074 RFE: MAKE TMPDIR A BUILD-TIME CONFIGURABLE OPTION Bug#68338 RFE: make tmpdir a build-time configurable option 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 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 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. Based on a contribution from Honza Horak
[27 Mar 2014 13:49]
Laurynas Biveinis
5.5$ bzr log -r 4583 -n0 ------------------------------------------------------------ revno: 4583 committer: Tor Didriksen <tor.didriksen@oracle.com> branch nick: 5.5-review timestamp: Thu 2014-01-16 15:43:29 +0100 message: Bug#16316074 RFE: MAKE TMPDIR A BUILD-TIME CONFIGURABLE OPTION Bug#68338 RFE: make tmpdir a build-time configurable option Post-push fix: 'cmake -LH | grep TMP' showed TMPDIR as a BOOL option, which was a bit confusing: show it as a PATH instead.
[27 Mar 2014 13:50]
Laurynas Biveinis
5.5$ bzr log -r 4584 -n0 ------------------------------------------------------------ revno: 4584 committer: Tor Didriksen <tor.didriksen@oracle.com> branch nick: 5.5-review timestamp: Thu 2014-01-16 18:01:06 +0100 message: Bug#16316074 RFE: MAKE TMPDIR A BUILD-TIME CONFIGURABLE OPTION Bug#68338 RFE: make tmpdir a build-time configurable option Post-push fix: windows needs DEFAULT_TMPDIR as well.