Skip to content

Commit e603acb

Browse files
committed
- Bug#17619241 SERVICE OR MYSQLD_SAFE STARTS PICKING WRONG PLUGIN DIRECTORY
- Updated file_contents test for sles packages
1 parent d142ed8 commit e603acb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mysql-test/t/file_contents.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if ($dir_bin =~ m|/usr/|) {
1717
$dir_docs =~ s|/lib|/share/doc|;
1818
if(-d "$dir_docs/packages") {
1919
# SuSE: "packages/" in the documentation path
20-
$dir_docs = glob "$dir_docs/packages/MySQL-server*";
20+
$dir_docs = glob "$dir_docs/packages/*-server*";
2121
} else {
2222
# RedHat: version number in directory name
2323
$dir_docs = glob "$dir_docs/MySQL-server*";
@@ -35,7 +35,7 @@ if ($dir_bin =~ m|/usr/|) {
3535
$dir_docs = "$dir_bin/share/doc";
3636
if(-d "$dir_docs/packages") {
3737
# SuSE: "packages/" in the documentation path
38-
$dir_docs = glob "$dir_docs/packages/MySQL-server*";
38+
$dir_docs = glob "$dir_docs/packages/*-server*";
3939
} else {
4040
# RedHat: version number in directory name
4141
$dir_docs = glob "$dir_docs/MySQL-server*";

scripts/mysqld_safe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ if [ -n "${PLUGIN_DIR}" ]; then
504504
plugin_dir="${PLUGIN_DIR}"
505505
else
506506
# Try to find plugin dir relative to basedir
507-
for dir in lib/mysql/plugin lib/plugin
507+
for dir in lib64/mysql/plugin lib64/plugin lib/mysql/plugin lib/plugin
508508
do
509509
if [ -d "${MY_BASEDIR_VERSION}/${dir}" ]; then
510510
plugin_dir="${MY_BASEDIR_VERSION}/${dir}"

0 commit comments

Comments
 (0)