[MDEV-7393] Setting log-basename in my.cnf will ignore pid-file and log-error settings Created: 2014-12-29 Updated: 2022-11-19 Resolved: 2022-11-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.0.15 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Brian Evans | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Gentoo |
||
| Description |
|
Simply by adding "log-basename = master" to a my.cnf file, the definitions for pid-file and log-error are ignored. This may include other settings as well but I cannot confirm that. How to repeat:
Expected results: Actual results: |
| Comments |
| Comment by Brian Evans [ 2014-12-29 ] |
|
putting log-basename first works as expected |
| Comment by Elena Stepanova [ 2014-12-30 ] |
|
I think it's natural behavior, consistent with how server options are treated in general. You have one option that sets the value for a variable, then you have another one that contradicts the first one, so the first one gets ignored and the later one is used. Assigning to monty (as the author of the option) to confirm. |
| Comment by Sergei Golubchik [ 2022-11-19 ] |
|
it seems that now (from commit 9cba6c5aa3b15f, first in 10.2.27) log-basename only updates pid-file if it wasn't set explicitly before. It still updates log-error even if it was set before, but not if it was disabled. |