Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
13.3
-
None
-
Not for Release Notes
Description
A setting in /.my.cnf should win over the same setting in a global option file, because /.my.cnf is read after the global option files. In the test case below, the global file sets log= in [mariadbd_multi], and /.my.cnf sets a different log= in [mysqld_multi]. mariadbd-multi writes to the log file from the global file and ignores the log= from /.my.cnf.
With the same group name in both files ([mariadbd_multi] in /.my.cnf as well), the log= from /.my.cnf is used.
BASEDIR=/test/mtest/MDEV-42003/MD031126-mariadb-13.2.0-linux-x86_64-opt |
TMPDIR=/tmp/testdir |
mkdir -p $TMPDIR/global $TMPDIR/user |
export PATH=$BASEDIR/bin:$PATH MYSQL_HOME=$TMPDIR/global HOME=$TMPDIR/user |
|
|
# Global option file ($MYSQL_HOME/my.cnf), read first
|
cat > $TMPDIR/global/my.cnf <<EOC |
[mariadbd_multi]
|
log=$TMPDIR/global/multi.log |
[mysqld2]
|
socket=$TMPDIR/s2 |
EOC
|
|
|
# User option file (~/.my.cnf), read last, so its log= should win
|
cat > $TMPDIR/user/.my.cnf <<EOC |
[mysqld_multi]
|
log=$TMPDIR/user/multi.log |
EOC
|
|
|
mariadbd-multi --silent report 2 >/dev/null |
for f in global user; do [ -e $TMPDIR/$f/multi.log ] && echo "$f log: written" || echo "$f log: not written"; done |
|
|
# Cleanup
|
rm -rf $TMPDIR |
Actual result
global log: written
|
user log: not written
|
Expected result
global log: not written
|
user log: written
|
Attachments
Issue Links
- is caused by
-
MDEV-42003 Enhance mariadbd-multi to support mariadbd prefixes
-
- In Testing
-