1. 03 Feb, 2019 4 commits
    • Kentoku's avatar
      MDEV-16787 optimistic parallel replication fails on spider · 540e82d1
      Kentoku authored
      Add a system variable spider_slave_trx_isolation.
      - spider_slave_trx_isolation
        The transaction isolation level when Spider table is used by slave SQL thread.
        -1 : OFF
         0 : READ UNCOMMITTED
         1 : READ COMMITTED
         2 : REPEATABLE READ
         3 : SERIALIZABLE
        The default value is -1
      
      Miscellaneous Spider typos
      540e82d1
    • Kentoku's avatar
      MDEV-16520 Out-Of-Memory running big aggregate query on Spider Engine · 41e60e7f
      Kentoku authored
      Change default value of the followings
      quick_mode 0 -> 3
      quick_page_size 100 -> 1024
      
      Add the following parameter for limiting result page size by byte
      - quick_page_byte(qpb)
        Number of bytes in a page when acquisition one by one.
        When quick_mode is 1 or 2, Spider stores at least 1 record even if
        quick_page_byte is smaller than 1 record. When quick_mode is 3,
        quick_page_byte is used for judging using temporary table.
        That is given to priority when server parameter spider_quick_page_byte
        is set.
        The default value is 10485760
      
      Fix "out of sync" issue at using quick_mode = 1 or 2
      41e60e7f
    • Kentoku's avatar
      MDEV-16279 Spider crashes on CHECKSUM TABLE with spider_quick_mode=3 · b27284db
      Kentoku authored
      The fields of the temporary table were not created in create_tmp_table function. Because item->const_item() was true. But the temporary tables that is created by Spider are always used all columns. So Spider should call create_tmp_table function with TMP_TABLE_ALL_COLUMNS flag.
      b27284db
    • Kentoku's avatar
  2. 01 Feb, 2019 1 commit
  3. 30 Jan, 2019 1 commit
  4. 29 Jan, 2019 3 commits
    • Daniel Bartholomew's avatar
      bump the VERSION · ac55d3e4
      Daniel Bartholomew authored
      ac55d3e4
    • Sergey Vojtovich's avatar
      Avoid taking LOCK_thread_count for thread_count protection · 4b3656a4
      Sergey Vojtovich authored
      Replaced wait on COND_thread_count with busy waiting with 1 millisecond
      sleep.
      
      Aim is to reduce usage of LOCK_thread_count and COND_thread_count.
      4b3656a4
    • Sergey Vojtovich's avatar
      MDEV-18400 - Move shutdown handling to main thread · 85535259
      Sergey Vojtovich authored
      Signal handler is now respoinsible for setting abort_loop and breaking
      poll() in main thread. The rest is handled by main thread itself.
      
      Removed redundant LOCK_error_log init/destroy wrappers.
      Removed redundant unireg_end(): it is trivial and it has only one caller.
      Removed unused ready_to_exit from PFS.
      Removed kill_in_progress: duplicates abort_loop.
      Removed shutdown_in_progress: duplicates abort_loop.
      Removed ready_to_exit: was used to make sure main thread waits for
      cleanups, which are now done by main thread itself.
      Removed SIGNALS_DONT_BREAK_READ, MAYBE_BROKEN_SYSCALL,
      kill_broken_server: never defined/used.
      Make clean_up() static.
      85535259
  5. 28 Jan, 2019 10 commits
    • Vladislav Vaintroub's avatar
      MDEV-15135 - Make LOCK_show_status rwlock, to enable parallelism of · c2318291
      Vladislav Vaintroub authored
      fill_status.
      
      Also, remove LOCK_status around calc_sum_of_all_status()
      
      Also, rename LOCK_show_status into LOCK_all_status_vars.
      This reflects the variable the lock protects.
      c2318291
    • Vladislav Vaintroub's avatar
      Use rwlock rather than mutex for protecting THD_list · 8b4fcc43
      Vladislav Vaintroub authored
      modifications (insert/erase) are protected by write lock
      iteration over list is protected by read lock.
      
      This way, threads that iterate over the list (as in SHOW PROCESSLIST,
      SHOW GLOBAL STATUS) do not block each other.
      8b4fcc43
    • Sergei Golubchik's avatar
      SSL test fixes · 9c60535f
      Sergei Golubchik authored
      * fix CRL tests to work
      * regenerate certificates to be at least 2048 bit
        (fixes buster and rhel8 in buildbot)
      * update generate-ssl-cert.sh to generate crl files
      * make all SSL tests to use certificates generated
        in generate-ssl-cert.sh, remove unused certificates
      9c60535f
    • Sergei Golubchik's avatar
      update the result file after the merge · eff7f9be
      Sergei Golubchik authored
      eff7f9be
    • Sergei Golubchik's avatar
      downgrade wsrep_plugin_init()/wsrep_plugin_deinit log messages · 41a9a677
      Sergei Golubchik authored
      from info to debug
      41a9a677
    • Sergey Vojtovich's avatar
      Removed redundant service_thread_count · 9824ec81
      Sergey Vojtovich authored
      In contrast to thread_count, which is decremented by THD destructor,
      this one was most probably intended to be decremented after all THD
      destructors are done.
      
      THD_count class was added to achieve similar effect with thread_count.
      
      Aim is to reduce usage of LOCK_thread_count and COND_thread_count.
      Part of MDEV-15135.
      9824ec81
    • Sergey Vojtovich's avatar
      Move THD list handling to THD_list · 3503fbbe
      Sergey Vojtovich authored
      Implemented and integrated THD_list as a replacement for the global
      thread list. It uses own mutex instead of LOCK_thread_count for THD
      list protection.
      
      Removed unused first_global_thread() and next_global_thread().
      
      delayed_insert_threads is now protected by LOCK_delayed_insert. Although
      this patch doesn't fix very wrong synchronization of this variable.
      
      After this patch there are only 2 legitimate uses of LOCK_thread_count
      left, both in mysqld.cc: thread_count and ready_to_exit.
      
      Aim is to reduce usage of LOCK_thread_count and COND_thread_count.
      Part of MDEV-15135.
      3503fbbe
    • Sergey Vojtovich's avatar
      Simplified THD::current_linfo locking · 891be49a
      Sergey Vojtovich authored
      LOG_INFO::lock was useless. It could've only protect against concurrent
      iterators execution, which was already protected by LOCK_thread_count.
      
      Use LOCK_thd_data instead of LOCK_thread_count as a protection against
      THD::current_linfo reset.
      
      Aim is to reduce usage of LOCK_thread_count and COND_thread_count.
      Part of MDEV-15135.
      891be49a
    • Sergey Vojtovich's avatar
      Execute bootstrap in main thread · c88fd54d
      Sergey Vojtovich authored
      Bootstrap in a separate thread was introduced in 746f0b3b to workaround
      OS/2 small stack size. OS/2 support was discontinued in 2006 and modern
      operating systems have default stack size a few times larger than
      default thread_stack and it is tunable.
      
      Aim is to reduce usage of LOCK_thread_count and COND_thread_count.
      Part of MDEV-15135.
      c88fd54d
    • Sergey Vojtovich's avatar
      Simplified code, no functional changes · 7ad742b2
      Sergey Vojtovich authored
      7ad742b2
  6. 26 Jan, 2019 5 commits
  7. 25 Jan, 2019 16 commits