summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | update a test result, followup fae6539ef72Sergei Golubchik2019-06-031-3/+3
| | | |
| * | | Fixed bug in online alter table when not compiled with performance schemaMonty2019-06-033-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | os_file_write_func() and os_file_read_no_error_handling_func() returned different result values depending on if UNIV_PFS_IO was defined or not. Other things: - Added some comments about return values for some functions
| * | | Supress some valgrind warningsMonty2019-06-031-0/+20
| | | |
| * | | Fixed compiler warningMonty2019-06-031-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Wrong compiler warning from GCC: ‘snprintf’ output 2 or more bytes (assuming 4001) into a destination of size 4000
| * | | Ensure that tests and programs can restore variablesMonty2019-06-034-11/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - --default-character-set can now be disabled in mysqldump - --skip-resolve can be be disabled in mysqld - mysql_client_test now resets global variables it changes - mtr couldn't handle [mysqldump] in config files (wrong regexp used)
| * | | Fix plugin linking on WindowsVladislav Vaintroub2019-06-031-1/+1
| | | |
| * | | Fix linking error, for GNU linker.Vladislav Vaintroub2019-06-031-1/+1
| | | |
| * | | Only link mysys_ssl when required.Vladislav Vaintroub2019-06-035-8/+8
| | | | | | | | | | | | | | | | | | | | Do not use TARGET_LINK_LIBRARIES(mysys mysys_ssl), this means that mysys_ssl is linked to practically everything.
| * | | MDEV-18207: ASAN heap-use-after-free in _ma_get_status upon concurrent ↵Vlad Lesin2019-05-311-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | operations with sequence The issue is that two MARIA_HA instances shares the same MARIA_STATUS_INFO object during UNION execution, so the second MARIA_HA instance state pointer MARIA_HA::state points to the MARIA_HA::state_save of the first MARIA instance. This happens in thr_multi_lock(...) { ... for (first_lock=data, pos= data+1 ; pos < end ; pos++) { ... if (pos[0]->lock == pos[-1]->lock && pos[0]->lock->copy_status) (pos[0]->lock->copy_status)((*pos)->status_param, (*first_lock)->status_param); ... } ... } Usually the state is restored from ha_maria::external_lock(...): \#0 _ma_update_status (param=0x6290000e6270) at ./storage/maria/ma_state.c:309 \#1 0x00005555577ccb15 in _ma_update_status_with_lock (info=0x6290000e6270) at ./storage/maria/ma_state.c:361 \#2 0x00005555577c7dcc in maria_lock_database (info=0x6290000e6270, lock_type=2) at ./storage/maria/ma_locking.c:66 \#3 0x0000555557802ccd in ha_maria::external_lock (this=0x61d0001b1308, thd=0x62a000048270, lock_type=2) at ./storage/maria/ha_maria.cc:2727 But _ma_update_status() does not take into account the case when MARIA_HA::status points to the MARIA_HA::state_save of the other MARIA_HA instance. The fix is to restore MARIA_HA::state in ha_maria::external_lock() after maria_lock_database() call for transactional tables.
| * | | Define page_id_t in buf0types.hMarko Mäkelä2019-05-312-71/+71
| | | |
| * | | Lintian complains about script-not-executableSergey Vojtovich2019-05-301-2/+0
| | | | | | | | | | | | | | | | Removed #! sequence from non-executable script.
| * | | Add missing script headerFaustin Lammler2019-05-307-0/+14
| | | |
* | | | MDEV-19698: Cleanup READ_RECORD::recordOleksandr Byelkin2019-06-075-20/+15
| | | | | | | | | | | | | | | | https://github.com/MariaDB/server/pull/777#issuecomment-496469366
* | | | MDEV-19600: The optimizer should be able to produce rows=1 estimate for ↵bb-10.3-mdev19600Sergei Petrunia2019-06-0511-37/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | unique index with NULLable columns Modify best_access_path() to produce rows=1 estimate for null-rejecting lookups on unique NULL keys.
* | | | Fixed c++11 narrowing error in table.ccMonty2019-05-291-1/+1
| | | |
* | | | Merge 10.2 into 10.3Marko Mäkelä2019-05-293-3/+3
|\ \ \ \ | |/ / /
| * | | MDEV-19541: Suppress an error also on WindowsMarko Mäkelä2019-05-293-3/+3
| | | |
* | | | Merge 10.2 into 10.3Marko Mäkelä2019-05-2990-471/+1991
|\ \ \ \ | |/ / /
| * | | MDEV-19541: Avoid infinite loop of reading a corrupted pageMarko Mäkelä2019-05-295-31/+53
| | | | | | | | | | | | | | | | | | | | | | | | row_search_mvcc(): Duplicate the logic of btr_pcur_move_to_next() so that an infinite loop can be avoided when advancing to the next page fails due to a corrupted page.
| * | | Speed up buildbot by requiring --big-test for some slow testsMarko Mäkelä2019-05-2916-0/+33
| | | |
| * | | MDEV-19541: Add a forgotten test caseMarko Mäkelä2019-05-295-2/+75
| | | | | | | | | | | | | | | | | | | | Also, --skip-innodb-buffer-pool-load-at-startup to avoid a crash in buf_load() due to loading pages that we are corrupting intentionally.
| * | | MDEV-19587 innodb_force_recovery=5 crash on DROP SCHEMAMarko Mäkelä2019-05-283-18/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At higher levels of innodb_force_recovery, the InnoDB transaction subsystem will not be set up at all. At slightly lower levels, recovered transactions will not be rolled back, and DDL operations could hang due to locks being held at all. Let us consistently refuse all writes if the predicate high_level_read_only holds. We failed to refuse DROP TABLE and DROP DATABASE. (Refusing DROP TABLE is a partial backport from MDEV-19570 in the 10.5 branch.)
| * | | MDEV-19602 Replace mysql_version check with frm_version for virtual columns ↵Thirunarayanan Balathandayuthapani2019-05-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | inside InnoDB - Replace mysql_version check with omit_virtual_cols() in ha_innobase::check_if_supported_inplace_alter().
| * | | Merge 10.1 into 10.2Marko Mäkelä2019-05-2837-297/+1498
| |\ \ \ | | |/ /
| | * | MDEV-19614: Fix innodb_plugin on WindowsMarko Mäkelä2019-05-281-4/+4
| | | | | | | | | | | | | | | | LOCK_global_system_variables: Declare with MYSQL_PLUGIN_IMPORT
| | * | Merge 5.5 into 10.1Marko Mäkelä2019-05-2812-91/+802
| | |\ \ | | | |/
| | | * MDEV-18479 Assertion `join->best_read < double(1.79769313486231570815e+308L)'Igor Babaev2019-05-275-79/+772
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | or server crashes in JOIN::fix_all_splittings_in_plan after EXPLAIN This patch resolves the problem of overflowing when performing calculations to estimate the cost of an evaluated query execution plan. The overflowing in a non-debug build could cause different kind of problems uncluding crashes of the server.
| | | * make CPACK_RPM_DEBUGINFO_PACKAGE configurable from the command-lineSergei Golubchik2019-05-221-1/+1
| | | |
| | | * MDEV-17799 Add ASAN-poisoned redzones for MEM_ROOTSergei Golubchik2019-05-201-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | post-merge changes Closes #954
| | | * MDEV-17799 Add ASAN-poisoned redzones for MEM_ROOT and mem_heap_tEugene Kosov2019-05-202-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is for MEM_ROOT only. In debug mode add 8 byte of poisoned memory before every allocated chunk. On the right of every chunk there will be either 1-7 trailing poisoned bytes, or next chunk's redzone, or poisoned non allocated memory or redzone of a malloc()ed buffer.
| | | * MDEV-18896 Crash in convert_join_subqueries_to_semijoins : CorrectionIgor Babaev2019-05-195-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch complements the original patch for MDEV-18896 that prevents conversions to semi-joins in tableless selects used in INSERT statements in post-5.5 versions of the server. The test case was corrected as well to ensure that potential conversion to jtbm semi-joins is also checked (the problem was that one of the preceeding testcases in subselect_sj.test did not restore the state of the optimizer switch leaving the 'materialization' in the state 'off' and so blocking this check). Noticed an inconsistency in the state of select_lex::table_list used in INSERT statements and left a comment about this.
| | * | MDEV-19614 SET GLOBAL innodb_ deadlock due to LOCK_global_system_variablesMarko Mäkelä2019-05-286-144/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The update callback functions for several settable global InnoDB variables are acquiring InnoDB latches while holding LOCK_global_system_variables. On the other hand, some InnoDB code is invoking THDVAR() while holding InnoDB latches. An example of this is thd_lock_wait_timeout() that is called by lock_rec_enqueue_waiting(). In some cases, the intern_sys_var_ptr() that is invoked by THDVAR() may acquire LOCK_global_system_variables, via sync_dynamic_session_variables(). In lock_rec_enqueue_waiting(), we really must be holding some InnoDB latch while invoking THDVAR(). This implies that LOCK_global_system_variables must conceptually reside below any InnoDB latch in the latching order. That in turns implies that the various update callback functions must release LOCK_global_system_variables before acquiring any InnoDB mutexes or rw-locks, and reacquire LOCK_global_system_variables later. The validate functions are being invoked while not holding LOCK_global_system_variables and thus they do not need any changes. The following statements are affected by this: SET GLOBAL innodb_adaptive_hash_index = …; SET GLOBAL innodb_cmp_per_index_enabled = 1; SET GLOBAL innodb_old_blocks_pct = …; SET GLOBAL innodb_fil_make_page_dirty_debug = …; -- debug builds only SET GLOBAL innodb_buffer_pool_evict = uncompressed; -- debug builds only SET GLOBAL innodb_purge_run_now = 1; -- debug builds only SET GLOBAL innodb_purge_stop_now = 1; -- debug builds only SET GLOBAL innodb_log_checkpoint_now = 1; -- debug builds only SET GLOBAL innodb_buf_flush_list_now = 1; -- debug builds only SET GLOBAL innodb_buffer_pool_dump_now = 1; SET GLOBAL innodb_buffer_pool_load_now = 1; SET GLOBAL innodb_buffer_pool_load_abort = 1; SET GLOBAL innodb_status_output = …; SET GLOBAL innodb_status_output_locks = …; SET GLOBAL innodb_encryption_threads = …; SET GLOBAL innodb_encryption_rotate_key_age = …; SET GLOBAL innodb_encryption_rotation_iops = …; SET GLOBAL innodb_encrypt_tables = …; SET GLOBAL innodb_disallow_writes = …; buf_LRU_old_ratio_update(): Correct the return type.
| | * | MDEV-6812: Remove the wrapper my_log2f()Marko Mäkelä2019-05-282-28/+6
| | | |
| | * | Mention the sample IPv4 address 10.0.0.1Marko Mäkelä2019-05-286-12/+12
| | | |
| | * | MDEV-17948 Assertion `thd_killed(thd) || !m_active_tranxs ..Andrei Elkin2019-05-242-17/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simulation of a big-sized event in rpl.rpl_semi_sync_skip_repl did not clean up after itself so screw the last binlog event offset which could jump backwards. The test is refined to rotate a binlog file with simulation and use the next one for logics of the test incl master-slave synchonization.
| | * | MDEV-19258 RIGHT JOIN hangs in MariaDBIgor Babaev2019-05-234-5/+416
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch corrects the patch for the bug 10006. The latter incorrectly calculates the attribute TABLE_LIST::dep_tables for inner tables of outer joins that are to be converted into inner joins. As a result after the patch some valid join orders were not evaluated and the optimizer could choose an execution plan that was far from being optimal.
| | * | Stale files cause intermittent failure when ordering is unfortunateRobert Bindar2019-05-221-0/+4
| | | | | | | | | | | | | | | | | | | | Running trigger_null-8605 drop_bad_db_type tests in this order was failing due to unremoved temporary files created in trigger_null-8605
| | * | MDEV-17752: Plan changes from hash_index_merge to index_merge with new ↵Varun Gupta2019-05-214-2/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | optimizer defaults The code in best_access_path function, when it does not find a key suitable for ref access and join_cache_level is set to a value so that hash_join is possible we build a hash key. Later in the function we compare the cost of ref access with table scan (or index scan or quick selects). No need to do this when we have got the hash key.
| | * | MDEV-19537: Document mysqlimport option ignore-foreign-keysIan Gilfillan2019-05-211-1/+17
| | | |
| * | | MDEV-19509 InnoDB skips the tablespace in rotation listThirunarayanan Balathandayuthapani2019-05-283-50/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - If one of the encryption threads already started the initialization of the tablespace then don't remove the other uninitialized tablespace from the rotation list. - If there is a change in innodb_encrypt_tables then don't remove the processed tablespace from rotation list.
| * | | MDEV-19541 InnoDB crashes when trying to recover a corrupted pageThirunarayanan Balathandayuthapani2019-05-287-27/+88
| | | | | | | | | | | | | | | | | | | | | | | | - Don't apply redo log for the corrupted page when innodb_force_recovery > 0. - Allow the table to be dropped when index root page is corrupted when innodb_force_recovery > 0.
| * | | MDEV-19027 create_table_def fails when virtual column is present between ↵Thirunarayanan Balathandayuthapani2019-05-271-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | stored columns - create_table_def() misconstructs the dict_table_t by ignoring the stored columns of the table if virtual column is present between stored columns.
| * | | RocksDB: use crc32c optimised version for POWERDaniel Black2019-05-271-0/+25
| | | |
| * | | MDEV-14192: mariabackup.incremental_backup failed in buildbot with Failing ↵Vlad Lesin2019-05-241-33/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assertion: byte_offset % OS_FILE_LOG_BLOCK_SIZE == 0 In some cases it's possible that InnoDB redo log file header is re-written so, that checkpoint lsn and checkpoint lsn offset are updated, but checkpoint number stays the same. The fix is to re-read redo log header if at least one of those three parametes is changed at backup start. Repeat the logic of log_group_checkpoint() on choosing InnoDB checkpoint info field on backup start. This does not influence backup correctness, but simplifies bugs analysis.
| * | | Declare INFORMATION_SCHEMA.INNODB_SYS_VIRTUAL stableMarko Mäkelä2019-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The INFORMATION_SCHEMA plugin INNODB_SYS_VIRTUAL, which was introduced in MariaDB 10.2.2 along with the dictionary table SYS_VIRTUAL, is similar to other, much older and already stable plugins that provide access to InnoDB dictionary tables.
| * | | Merge 10.1 into 10.2Marko Mäkelä2019-05-211-2/+10
| |\ \ \ | | |/ /
| | * | Better comment from Monty for code in make_join_selectSergei Petrunia2019-05-171-2/+10
| | | |
| | * | MDEV-16021: galera mtr test galera_evs_suspect_timeout crashedJan Lindström2019-05-172-25/+44
| | | | | | | | | | | | | | | | | | | | Crash was timeout crash. Add correct waits for connections, wsrep sync waits and auto increment offset save and restore.
| | * | MDEV-13549: Timeout in wait_condition.inc for PROCESSLISTJan Lindström2019-05-173-29/+18
| | | | | | | | | | | | | | | | | | | | Use wsrep sync wait instead of unnecessary waits and correct slave setting.
| | * | MDEV-17061: Test failure on galera.galera_gcs_fc_limitJan Lindström2019-05-173-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | Remove unnecessary sleeps and fix wait_condition to use wsrep_flow_control_paused i.e. we wait until flow control pauses a transaction on master.