summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '10.4' into bb-10.4-mdev16188Igor Babaev2019-02-032383-36587/+84549
|\
| * MDEV-16279 Spider crashes on CHECKSUM TABLE with spider_quick_mode=3Kentoku2019-02-034-0/+284
| | | | | | | | add tests
| * MDEV-16787 optimistic parallel replication fails on spiderKentoku2019-02-0310-15/+378
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * MDEV-16520 Out-Of-Memory running big aggregate query on Spider EngineKentoku2019-02-0333-30/+3816
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * MDEV-16279 Spider crashes on CHECKSUM TABLE with spider_quick_mode=3Kentoku2019-02-031-2/+4
| | | | | | | | 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.
| * Update Spider to version 3.3.14. Add direct left outer join/right outer ↵Kentoku2019-02-0364-751/+5134
| | | | | | | | join/inner join feature
| * MDEV-17484: New defaults for eq_range_index_dive_limit in 10.4Varun Gupta2019-02-015-11/+11
| | | | | | | | The default value for eq_range_index_dive_limit is set to 10
| * Merge bb-10.4-release into 10.4Marko Mäkelä2019-01-3061-1280/+747
| |\
| | * bump the VERSIONDaniel Bartholomew2019-01-291-1/+1
| | |
| | * SSL test fixesmariadb-10.4.2Sergei Golubchik2019-01-2858-1265/+732
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | * update the result file after the mergeSergei Golubchik2019-01-281-12/+12
| | |
| | * downgrade wsrep_plugin_init()/wsrep_plugin_deinit log messagesSergei Golubchik2019-01-281-2/+2
| | | | | | | | | | | | from info to debug
| * | Avoid taking LOCK_thread_count for thread_count protectionSergey Vojtovich2019-01-294-34/+7
| | | | | | | | | | | | | | | | | | | | | 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.
| * | MDEV-18400 - Move shutdown handling to main threadSergey Vojtovich2019-01-298-277/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | MDEV-15135 - Make LOCK_show_status rwlock, to enable parallelism ofVladislav Vaintroub2019-01-285-21/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Use rwlock rather than mutex for protecting THD_listVladislav Vaintroub2019-01-283-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Removed redundant service_thread_countSergey Vojtovich2019-01-287-65/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Move THD list handling to THD_listSergey Vojtovich2019-01-2820-720/+703
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Simplified THD::current_linfo lockingSergey Vojtovich2019-01-285-26/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Execute bootstrap in main threadSergey Vojtovich2019-01-287-126/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bootstrap in a separate thread was introduced in 746f0b3b7 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.
| * | Simplified code, no functional changesSergey Vojtovich2019-01-281-41/+11
| |/
| * Removed declaration of strconvert() from innodb_priv.hMonty2019-01-261-3/+1
| |
| * Removed \n from sql_print_error()Monty2019-01-265-19/+19
| |
| * Fixed failing testcase when blackhole engine is not enabledMonty2019-01-261-2/+3
| |
| * fix failing openssl_1 testSergei Golubchik2019-01-261-3/+5
| | | | | | | | if ssl_cipher is not specified, it must be NULL, not ""
| * Merge branch '10.3' into 10.4Sergei Golubchik2019-01-2629-291/+529
| |\
| | * Merge branch '10.2' into 10.3Sergei Golubchik2019-01-2513-168/+410
| | |\
| | | * Don't run tests that check privileges in --embeddedSergei Golubchik2019-01-251-0/+1
| | | |
| | | * Deb: don't edit control file from inside rules fileSergei Golubchik2019-01-252-5/+5
| | | | | | | | | | | | | | | | It's too late. Might work or not (and on buster it doesn't).
| | | * Fix tests not to fail with OpenSSL 1.1.1 with TLSv1.3Sergei Golubchik2019-01-259-162/+191
| | | |
| | * | Make the PYTHON_SHEBANG value configurableSergei Golubchik2019-01-252-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | and gitignore myrocks_hotbackup (as it's now generated) Closes #1081
| | * | Do not import commands library as it is not usedHonza Horak2019-01-251-1/+0
| | | | | | | | | | | | | | | | Closes #1080
| | * | cleanup: trg2bit() helperSergei Golubchik2019-01-254-25/+16
| | | |
| | * | MDEV-18057 Assertion `(node->state == 5) || (node->state == 6)' failed in ↵Eugene Kosov2019-01-253-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | row_upd_sec_step upon DELETE after UPDATE failed due to FK violation The idea of the fix: reset state from previous query. row_upd_clust_step(): reset cached index before updating a clustered index Closes #1133
| | * | Merge 10.2 into 10.3Marko Mäkelä2019-01-254-88/+71
| | |\ \ | | | |/
| | | * MDEV-18235: Changes related to fsync()Eugene Kosov2019-01-252-85/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove fil_node_t::sync_event. I had a discussion with kernel fellows and they said it's safe to call fsync() simultaneously at least on VFS and ext4. So initially I wanted to disable check for recent Linux but than I realized code is buggy. Consider a case when one thread is inside fsync() and two others are waiting inside os_event. First thread after fsync() calls os_event_set() which is a broadcast! So two waiting threads will awake and may call fsync() at the same time. One fix is to add a notify_one() functionality to os_event but I decided to remove incorrect check completely. Note, it works for one waiting thread but not for more than one. IMO it's ok to avoid existing bugs but there is not too much sense in avoiding possible(!) bugs as this code does. fil_space_t::is_in_rotation_list(), fil_space_t::is_in_unflushed_spaces(): Replace redundant bool fields with member functions. fil_node_t::needs_flush: Replaces fil_node_t::modification_counter and fil_node_t::flush_counter. We need to know whether there _are_ some unflushed writes and we do not need to know _how many_ writes. fil_system_t::modification_counter: Remove as not needed. Even if we needed fil_node_t::modification_counter, every file could have its own counter that would be incremented on each write. fil_system_t::modification_counter is a global modification counter for all files. It was incremented on every write. But whether some file was flushed or not is an internal fil_node_t deal/state and this makes fil_system_t::modification_counter useless. Closes #1061
| | | * MDEV-18352 Add a regression test for VARCHAR enlargingMarko Mäkelä2019-01-252-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a simplest regression test. Specifically, I want to be sure that SYS_COLUMNS.LEN is increased. Closes #1123
| | * | Merge pull request #1136 from tempesta-tech/sysprg/MDEV-18379Jan Lindström2019-01-257-19/+8
| | |\ \ | | | | | | | | | | MDEV-18379: Unification of check for IPv6
| | | * | MDEV-18379: Unification of check for IPv6Julius Goryavsky2019-01-257-19/+8
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the three-node mtr suite for Galera (galera_3nodes) uses a separate IPv6 availability check using the "have_ipv6.inc" file. This check duplicates a more accurate check at suite.pm level, which can be used by including the file "check_ipv6.inc". This patch removes this discrepancy between suites. In addition, one of the files in the galera_3nodes suite does not contain the option "--bind-address=::" which is needed for the test to work correctly with IPv6 (at least on some systems), since without it the server will not wait for connections on the IPv6 interface. https://jira.mariadb.org/browse/MDEV-18379
| | * | MDEV-17401: LOAD DATA from very big file into MyISAM table results in EOF ↵Oleksandr Byelkin2019-01-251-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | error and corrupt index fix of incorrect 10.3 merge
| * | | MDEV-18122 Assertion 'table->versioned() == m_prebuilt->table->versioned()' ↵Aleksey Midenkov2019-01-253-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | failed in ha_innobase::open Closes #1134
| * | | Merge pull request #1135 from codership/10.4-fix-galera_3nodes-ipv6Jan Lindström2019-01-256-12/+24
| |\ \ \ | | | | | | | | | | Fix for galera_3nodes galera_ipv6_mysqldump and galera_ipv6_mariabackup
| | * | | Updated wsrep-lib to have more permissive compiler options by defaultTeemu Ollakka2019-01-251-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WSREP_LIB_MAINTAINER_MODE was introduced in wsrep-lib cmake options to enable -Werror. The maintainer mode is disabled by default in order not to fail compilation on every compiler warning. The wsrep-lib maintainer mode can be enabled via -DWSREP_LIB_MAINTAINER_MODE:BOOL=ON.
| | * | | Fixed Galera test regressions from 10.3 mergeTeemu Ollakka2019-01-255-12/+24
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Made galera_3nodes.galera_ipv6_mariabackup deterministic with respect to donor selection, fixed assert grep definitions to match Galera 4 behavior and recorded. * Removed extra connection setup from galera_3nodes.galera_ipv6_mysqldump and recorded.
| * | | Merge 10.3 into 10.4Marko Mäkelä2019-01-251-3/+0
| |\ \ \ | | |/ /
| | * | Merge pull request #1129 from GeoffMontee/10.3-geoff-MDEV-18372Marko Mäkelä2019-01-251-3/+0
| | |\ \ | | | | | | | | | | MDEV-18372: Minor MDEV-17973-related merge issue to 10.3
| | | * | MDEV-18372: Minor MDEV-17973-related merge issue to 10.3Geoff Montee2019-01-241-3/+0
| | |/ /
| * | | Correct a resultMarko Mäkelä2019-01-251-1/+1
| | | |
| * | | MDEV-18369: Crash at wsrep_handle_SR_rollback(THD*, THD*): Assertion ↵Jan Lindström2019-01-251-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | `victim_thd' failed. Call to wsrep_handle_SR_rollback was missing check that wsrep_on is true.
| * | | Merge 10.3 into 10.4Marko Mäkelä2019-01-2483-270/+945
| |\ \ \ | | |/ /