Skip to content

Commit 7dc5183

Browse files
committed
wsrep_sst_rsync: read correct configuration sections
4bb49d8 had a single option, --mysqld to obtain the required innodb_log_group_home_dir. 83664e2 enumberated the groups when --mysqld was sufficient.
1 parent 7e4c185 commit 7dc5183

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

scripts/wsrep_sst_rsync.sh

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,7 @@ fi
102102
WSREP_LOG_DIR=${WSREP_LOG_DIR:-""}
103103
# if WSREP_LOG_DIR env. variable is not set, try to get it from my.cnf
104104
if [ -z "$WSREP_LOG_DIR" ]; then
105-
WSREP_LOG_DIR=$(parse_cnf mariadb-10.0 innodb_log_group_home_dir "")
106-
fi
107-
if [ -z "$WSREP_LOG_DIR" ]; then
108-
WSREP_LOG_DIR=$(parse_cnf mysqld innodb_log_group_home_dir "")
109-
fi
110-
if [ -z "$WSREP_LOG_DIR" ]; then
111-
WSREP_LOG_DIR=$(parse_cnf server innodb_log_group_home_dir "")
112-
fi
113-
if [ -z "$WSREP_LOG_DIR" ]; then
114-
WSREP_LOG_DIR=$(parse_cnf mariadb innodb_log_group_home_dir "")
115-
fi
116-
if [ -z "$WSREP_LOG_DIR" ]; then
117-
WSREP_LOG_DIR=$(parse_cnf mysqld-10.0 innodb_log_group_home_dir "")
105+
WSREP_LOG_DIR=$(parse_cnf --mysqld innodb_log_group_home_dir "")
118106
fi
119107

120108
if [ -n "$WSREP_LOG_DIR" ]; then

0 commit comments

Comments
 (0)