[MDEV-12159] innodb_tmpdir only checked when setting at runtime, not in my.cnf Created: 2017-03-01  Updated: 2020-05-19

Status: Stalled
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.1.20
Fix Version/s: 10.1

Type: Bug Priority: Major
Reporter: Hartmut Holzgraefe Assignee: Thirunarayanan Balathandayuthapani
Resolution: Unresolved Votes: 1
Labels: None


 Description   

When trying to set innodb_tmpdir at runtime the server prevents me from setting it to a path that is within the data directory:

mysql> SET GLOBAL innodb_tmpdir="/usr/local/mysql/data/my-tmpdir";
ERROR 1231 (42000): Variable 'innodb_tmpdir' can't be set to the value of '/usr/local/mysql/data/my-tmpdir'
 
mysql> SHOW WARNINGS;
| Level | Code | Message
| Warning | 1210 | InnoDB: Path Location should not be same as mysql data directory location.
| Error | 1231 | Variable 'innodb_tmpdir' can't be set to the value of '/usr/local/mysql-maria-10.1.19/var/my-tmpdir'

Setting it to exactly the same path as above is possible via the my.cnf option file though. mysqld will start up fine without any warnings, and when checking the innodb_tmpdir variable it is indeed showing /usr/local/mysql-maria-10.1.19/var/my-tmpdir as current value.


Generated at Thu Feb 08 07:55:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.