• Arun Kuruvila's avatar
    Bug #20772273 : MYSQLIMPORT --USE-THREADS DOESN'T USE · 7c5d18e2
    Arun Kuruvila authored
                    MULTIPLE THREADS
    
    Description:- The utility "mysqlimport" does not use
    multiple threads for the execution with option
    "--use-threads". "mysqlimport" while importing multiple
    files and multiple tables, uses a single thread even if the
    number of threads are specified with "--use-threads" option.
    
    Analysis:- This utility uses ifdef HAVE_LIBPTHREAD to check
    for libpthread library and if defined uses libpthread
    library for mutlithreaing. Since HAVE_LIBPTHREAD is not
    defined anywhere in the source, "--use-threads" option is
    silently ignored.
    
    Fix:- "-DTHREADS" is set to the COMPILE_FLAGS  which will
    enable pthreads. HAVE_LIBPTHREAD macro is removed.
    7c5d18e2
mysqlimport.c 20.7 KB