diff options
author | unknown <msvensson@neptunus.(none)> | 2006-02-20 13:04:40 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-02-20 13:04:40 +0100 |
commit | 0934ad5d7fb0bcbde436c9a99cf5cd262153b8e7 (patch) | |
tree | d53a4ab6801681257319eee2d03f2b5975955ee1 /client/mysqlimport.c | |
parent | 140c91643bd1fa950b4b67b42f4ce6fba4ce5cc3 (diff) | |
download | mariadb-git-0934ad5d7fb0bcbde436c9a99cf5cd262153b8e7.tar.gz |
Bug#17382 mysql-test-run mysqldump fails with mysqlimport
client/Makefile.am:
Use LDADD_R as common variable for programs to be linked with thread safe library.
client/mysqlimport.c:
Enable "--use-threads"
Formatting
mysql-test/r/mysqldump.result:
Update test result
mysql-test/t/disabled.def:
Enable mysqldump
mysql-test/t/mysqldump.test:
Enable test for mysqlimport with threads
Add test for failed mysqlimport
Diffstat (limited to 'client/mysqlimport.c')
-rw-r--r-- | client/mysqlimport.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c index edaaf20d98b..81040bed993 100644 --- a/client/mysqlimport.c +++ b/client/mysqlimport.c @@ -145,13 +145,11 @@ static struct my_option my_long_options[] = (gptr*) &opt_mysql_unix_port, (gptr*) &opt_mysql_unix_port, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, #include <sslopt-longopts.h> -#if 0 {"use-threads", OPT_USE_THREADS, "Load files in parallel. The argument is the number " "of threads to use for loading data.", (gptr*) &opt_use_threads, (gptr*) &opt_use_threads, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, -#endif #ifndef DONT_ALLOW_USER_CHANGE {"user", 'u', "User for login if not current user.", (gptr*) ¤t_user, (gptr*) ¤t_user, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, @@ -292,7 +290,7 @@ static int write_to_table(char *filename, MYSQL *mysql) DBUG_PRINT("enter",("filename: %s",filename)); fn_format(tablename, filename, "", "", 1 | 2); /* removes path & ext. */ - if (! opt_local_file) + if (!opt_local_file) strmov(hard_path,filename); else my_load_path(hard_path, filename, NULL); /* filename includes the path */ @@ -640,9 +638,9 @@ loop_label: if (lock_tables) lock_table(mysql, argc, argv); for (; *argv != NULL; argv++) - if ((error=write_to_table(*argv, mysql))) + if ((error= write_to_table(*argv, mysql))) if (exitcode == 0) - exitcode = error; + exitcode= error; db_disconnect(current_host, mysql); } my_free(opt_password,MYF(MY_ALLOW_ZERO_PTR)); |