diff options
author | Sergei Golubchik <serg@mariadb.org> | 2014-09-26 15:54:42 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2014-10-01 23:38:27 +0200 |
commit | 4bb49d84a9df8c3f29683bfe8503a575bc0ab84b (patch) | |
tree | 0c96f130ed7767063af8587809bce1f5d5ddc141 /mysys | |
parent | dc113e2765c19cc3b1dff7c6141701411c93ce42 (diff) | |
download | mariadb-git-4bb49d84a9df8c3f29683bfe8503a575bc0ab84b.tar.gz |
correct handling on defaults[-extra]-file is SST scripts
pass --defaults-file and --defaults-extra-file
(whatever was specified, or none)
from mysqld down to SST scripts.
parse these options in SST scripts and pass them down
to mysqldump, my_print_defaults, and xtrabackup
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_default.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/mysys/my_default.c b/mysys/my_default.c index 1a29fd87a34..1e4038d17fb 100644 --- a/mysys/my_default.c +++ b/mysys/my_default.c @@ -88,12 +88,6 @@ static char my_defaults_extra_file_buffer[FN_REFLEN]; static my_bool defaults_already_read= FALSE; -#ifdef WITH_WSREP -/* The only purpose of this global array is to hold full name of my.cnf - * which seems to be otherwise unavailable */ -char wsrep_defaults_file[FN_REFLEN + 10]={0,}; -#endif /* WITH_WREP */ - /* Which directories are searched for options (and in which order) */ #define MAX_DEFAULT_DIRS 6 @@ -810,12 +804,6 @@ static int search_default_file_with_ext(Process_option_func opt_handler, if (!(fp= mysql_file_fopen(key_file_cnf, name, O_RDONLY, MYF(0)))) return 1; /* Ignore wrong files */ -#ifdef WITH_WSREP - /* make sure we do this only once - for top-level file */ - if ('\0' == wsrep_defaults_file[0]) - strmake(wsrep_defaults_file, name, sizeof(wsrep_defaults_file) - 1); -#endif /* WITH_WSREP */ - while (mysql_file_fgets(buff, sizeof(buff) - 1, fp)) { line++; |