Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
da10c6f4
Commit
da10c6f4
authored
Mar 05, 2020
by
Vicențiu Ciorbaru
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.1' into 10.2
parents
f0d2542a
395f23a1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
3 deletions
+39
-3
mysql-test/r/mysqld--defaults-file.result
mysql-test/r/mysqld--defaults-file.result
+10
-0
mysql-test/t/mysqld--defaults-file.test
mysql-test/t/mysqld--defaults-file.test
+16
-0
mysys/my_default.c
mysys/my_default.c
+10
-0
support-files/mariadb.pc.in
support-files/mariadb.pc.in
+1
-1
support-files/mariadb.service.in
support-files/mariadb.service.in
+1
-1
support-files/mariadb@.service.in
support-files/mariadb@.service.in
+1
-1
No files found.
mysql-test/r/mysqld--defaults-file.result
View file @
da10c6f4
...
...
@@ -10,3 +10,13 @@ Could not open required defaults file: MYSQL_TEST_DIR/with.ext
Fatal error in defaults handling. Program aborted
Could not open required defaults file: MYSQL_TEST_DIR/no_extension
Fatal error in defaults handling. Program aborted
#
# MDEV-21374: When "--help --verbose" prints out configuration file paths,
# the --defaults-file option is not considered
#
# Test on `defaults-file`
Default options are read from the following files in the given order:
MYSQLTEST_VARDIR/my.cnf
# Test on `defaults-extra-file`
Default options are read from the following files in the given order:
<first-defaults> MYSQLTEST_VARDIR/my_test.cnf ~/.my.cnf
mysql-test/t/mysqld--defaults-file.test
View file @
da10c6f4
...
...
@@ -29,3 +29,19 @@ exec $MYSQLD --defaults-file=with.ext --print-defaults 2>&1;
--
error
1
exec
$MYSQLD
--
defaults
-
file
=
no_extension
--
print
-
defaults
2
>&
1
;
--
echo
#
--
echo
# MDEV-21374: When "--help --verbose" prints out configuration file paths,
--
echo
# the --defaults-file option is not considered
--
echo
#
--
echo
# Test on `defaults-file`
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
exec
$MYSQLD
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
help
--
verbose
|
grep
-
A
1
'Default options are read'
;
--
echo
# Test on `defaults-extra-file`
# <first-defaults> = `/etc/my.cnf /etc/mysql/my.cnf`
# Using sysconfdir configuration, we don't always have `/etc/mysql/my.cnf`, so replace them with a regex as well.
copy_file
$MYSQLTEST_VARDIR
/
my
.
cnf
$MYSQLTEST_VARDIR
/
my_test
.
cnf
;
--
replace_regex
/.*
my_test
.
cnf
/<
first
-
defaults
>
MYSQLTEST_VARDIR
\
/
my_test
.
cnf
/
exec
$MYSQLD
--
defaults
-
extra
-
file
=
$MYSQLTEST_VARDIR
/
my_test
.
cnf
--
help
--
verbose
|
grep
-
A
1
'Default options are read'
;
remove_file
$MYSQLTEST_VARDIR
/
my_test
.
cnf
;
mysys/my_default.c
View file @
da10c6f4
...
...
@@ -1035,6 +1035,11 @@ void my_print_default_files(const char *conf_file)
char
name
[
FN_REFLEN
],
**
ext
;
puts
(
"
\n
Default options are read from the following files in the given order:"
);
if
(
my_defaults_file
)
{
puts
(
my_defaults_file
);
return
;
}
if
(
dirname_length
(
conf_file
))
fputs
(
conf_file
,
stdout
);
...
...
@@ -1059,7 +1064,12 @@ void my_print_default_files(const char *conf_file)
if
(
**
dirs
)
pos
=
*
dirs
;
else
if
(
my_defaults_extra_file
)
{
pos
=
my_defaults_extra_file
;
fputs
(
pos
,
stdout
);
fputs
(
" "
,
stdout
);
continue
;
}
else
continue
;
end
=
convert_dirname
(
name
,
pos
,
NullS
);
...
...
support-files/mariadb.pc.in
View file @
da10c6f4
...
...
@@ -20,4 +20,4 @@ Description: @CPACK_PACKAGE_DESCRIPTION_SUMMARY@
URL: @CPACK_PACKAGE_URL@
Version: @VERSION@
Libs: -L${libdir} @LIBS_FOR_CLIENTS@
Cflags: -I${includedir}
-I${includedir}/..
@CFLAGS_FOR_CLIENTS@
Cflags: -I${includedir} @CFLAGS_FOR_CLIENTS@
support-files/mariadb.service.in
View file @
da10c6f4
...
...
@@ -141,7 +141,7 @@ TimeoutStopSec=900
## isn't executed.
##
# Number of files limit. previously [mysqld_safe] open-file-limit
# Number of files limit. previously [mysqld_safe] open-file
s
-limit
LimitNOFILE=16364
# Maximium core size. previously [mysqld_safe] core-file-size
...
...
support-files/mariadb@.service.in
View file @
da10c6f4
...
...
@@ -167,7 +167,7 @@ TimeoutStopSec=900
## isn't executed.
##
# Number of files limit. previously [mysqld_safe] open-file-limit
# Number of files limit. previously [mysqld_safe] open-file
s
-limit
LimitNOFILE=16364
# Maximium core size. previously [mysqld_safe] core-file-size
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment