summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Review of 05cae92e524: last_used_log_number increment is made to follow ↵bb-10.4-andrei_for_monty2Andrei Elkin2019-03-302-7/+5
| | | | last_binlog_id pattern.
* review of 05cae92e524:Andrei Elkin2019-03-303-1424/+37
| | | | | - a very bad typo is fixed in DBUG_EXECUTE.. - the test cleanup. No point to have such big result file.
* Refiment of 05cae92e524 to return consistent results despite concurrent ↵Andrei Elkin2019-03-293-49/+113
| | | | binlog rotation.
* Speed up rotation of binary logsMonty2019-03-262-39/+74
| | | | | | | | | Fixed by caching last binary log number used in last_used_log_number Other things: - Moved locking of LOCK_log form new_file_impl() to new_file(). This fixed a bug where LOCK_log could have been unlocked even if 'need_lock' was not set. Removed not anymore used argument need_lock.
* Don't keep mutex locked during show binary logsMonty2019-03-264-20/+2478
| | | | | | | | On some systems with 10,000+ binlogs, show binary logs could block log rotation for more than 10 seconds. This patch fixes this by first caching all binary log names and releases all mutexes while calculating the sizes of the binary logs.
* Removed some warnings from -Wimplicit-fallthrough= with build scriptsMonty2019-03-264-3/+4
|
* Write information about restart in .resultMichael Widenius2019-03-26213-13/+502
| | | | Idea comes from MySQL which does something similar
* Fixed uninitialized bug in Range_rowid_filter_cost_infoMichael Widenius2019-03-261-1/+3
|
* Updated valgrind.supp for OpenSLL 1.0.1lMichael Widenius2019-03-261-0/+20
|
* Merge 10.3 into 10.4Marko Mäkelä2019-03-2623-81/+222
|\
| * Merge 10.2 into 10.3Marko Mäkelä2019-03-262-10/+10
| |\
| | * Merge 10.1 into 10.2Marko Mäkelä2019-03-262-8/+8
| | |\
| | | * Fixup for MDEV-18968Marko Mäkelä2019-03-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Item_cond::eval_not_null_tables(): Use Item::eval_const_cond(), just like Item_cond::fix_fields(). This inconsistency was found while merging to 10.3, where the Microsoft compiler is configured to report an error for comparing longlong to bool.
| * | | MDEV-18869 Assertion `!((field)->vcol_info && (field)->stored_in_db())' ↵Aleksey Midenkov2019-03-263-1/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | failed in innodb_col_no upon altering table with system versioning WITH/WITHOUT SYSTEM VERSIONING is not supported for generated columns at parser level (see definition of field_def rule).
| * | | Merge 10.2 into 10.3Marko Mäkelä2019-03-2620-69/+119
| |\ \ \ | | |/ /
| | * | Merge 10.1 into 10.2Marko Mäkelä2019-03-261-1/+3
| | |\ \ | | | |/
| | | * Fix cmake -DENABLED_PROFILING=OFFMarko Mäkelä2019-03-261-1/+3
| | | |
| | * | Merge 10.1 into 10.2Marko Mäkelä2019-03-2621-82/+141
| | |\ \ | | | |/
| | | * Merge 10.0 into 10.1Marko Mäkelä2019-03-262-2/+2
| | | |\
| | | | * Fix USE_AFTER_FREE (CWE-416)FaramosCZ2019-03-221-1/+1
| | | | | | | | | | | | | | | swap two lines
| | | | * Update sql_parse.ccChris Calender2019-03-221-1/+1
| | | | | | | | | | | | | | | Corrected one more "refering" typo.
| | | * | MDEV-12711 mariabackup --backup is refused for multi-file system tablespaceMarko Mäkelä2019-03-264-24/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before MDEV-12113 (MariaDB Server 10.1.25), on shutdown InnoDB would write the current LSN to the first page of each file of the system tablespace. This is incompatible with MariaDB's InnoDB table encryption, because encryption repurposed the field for an encryption key ID and checksum. buf_page_is_corrupted(): For the InnoDB system tablespace, skip FIL_PAGE_FILE_FLUSH_LSN when checking if a page is all zero, because the first page of each file in the system tablespace can contain nonzero bytes in the field.
| | | * | MDEV-18968 Both (WHERE 0.1) and (WHERE NOT 0.1) return empty setAlexander Barkov2019-03-268-20/+55
| | | | |
| | | * | Fix resource leakFaramosCZ2019-03-221-0/+1
| | | | | | | | | | | | | | | | | | | | The 'bitmap_dir' has to be closed when no longer needed
| | | * | Backporting slow log simulation logic details from 10.2 to 10.1Alexander Barkov2019-03-223-24/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simulate slow statements only for COM_QUERY and COM_STMT_EXECUTE commands, to exclude mysqld_stmt_prepare() and mysqld_stmt_close() entries from the log, as they are not relevant for log_slow_debug.test. This simplifies the test.
| | | * | Fix resource leakFaramosCZ2019-03-221-0/+1
| | | | |
| | | * | Fix resource leakFaramosCZ2019-03-221-0/+1
| | | | |
| | | * | Fix resource leakFaramosCZ2019-03-221-0/+1
| | | | |
| | * | | bump the VERSIONDaniel Bartholomew2019-03-251-1/+1
| | | | |
| | * | | Fix the Windows buildMarko Mäkelä2019-03-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | btr_cur_compress_recommendation(): Backport a change from 10.3. This is a follow-up to commit 1bd98154791d77a44d2afc4bf6eb78f692fb7b5b.
* | | | | Fix crash recovery with small buffer poolMarko Mäkelä2019-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Occasionally, the test innodb_gis.rtree_recovery,4k runs out of buffer pool during crash recovery. This test might have started failing in connection with MDEV-18726. Work around it by reserving a little more overhead for the recovery hash tables. FIXME: Propagate the "out of memory" error to recv_add_to_hash_table() and transition to multi-batch recovery with a finer granularity.
* | | | | Merge 10.3 into 10.4Marko Mäkelä2019-03-2545-337/+337
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.2 into 10.3Marko Mäkelä2019-03-257-74/+64
| |\ \ \ \ | | |/ / /
| | * | | MDEV-19022: InnoDB fails to cleanup useless B-tree pagesMarko Mäkelä2019-03-256-72/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test case for reproducing MDEV-14126 demonstrates that InnoDB can end up with an index tree where a non-leaf page has only one child page. The test case innodb.innodb_bug14676111 demonstrates that such pages are sometimes unavoidable, because InnoDB does not implement any sort of B-tree rotation. But, there is no reason to allow a root page with only one child page. btr_cur_node_ptr_delete(): Replaces btr_node_ptr_delete(). btr_page_get_father(): Declare globally. btr_discard_only_page_on_level(): Declare with ATTRIBUTE_COLD. It turns out that this function is not covered by the innodb.innodb_bug14676111 test case after all. btr_discard_page(): If the root page ends up having only one child page, shrink the tree by invoking btr_lift_page_up().
| | * | | Avoid sign mismatch in comparisonsMarko Mäkelä2019-03-251-3/+3
| | | | | | | | | | | | | | | | | | | | This is follow-up to commit 1bd98154791d77a44d2afc4bf6eb78f692fb7b5b.
| | * | | MDEV-14126: Fix type mismatchMarko Mäkelä2019-03-252-38/+32
| | | | | | | | | | | | | | | | | | | | | | | | | Backport some changes to B-tree page accessor functions from 10.3, including changing page_get_n_recs() to return uint16_t.
| * | | | Merge 10.2 into 10.3Marko Mäkelä2019-03-2524-109/+129
| |\ \ \ \ | | |/ / /
| | * | | MDEV-14126: Detect unexpected emptying of B-tree pagesMarko Mäkelä2019-03-254-4/+10
| | | | | | | | | | | | | | | | | | | | If an index page becomes empty, btr_page_empty() should be called.
| | * | | MDEV-14126: Improve assertions in btr_pcur_store_position()Marko Mäkelä2019-03-251-13/+9
| | | | |
| | * | | MDEV-14126: Remove page_is_root()Marko Mäkelä2019-03-259-66/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The predicate page_is_root(), which was added in MariaDB Server 10.2.2, is based on a wrong assumption. Under some circumstances, InnoDB can transform B-trees into a degenerate state where a non-leaf page has no sibling pages. Because of this, we cannot assume that a page that has no siblings is the root page. This bug will be tracked as MDEV-19022. Because of the bug that may affect many InnoDB data files, we must remove and replace the wrong predicate. Using the wrong predicate can cause corruption. A leaf page is not allowed to be empty except if it is the root page, and the entire table is empty.
| | * | | MDEV-18090 Assertion failures due to virtual columns after upgrading to 10.2Marko Mäkelä2019-03-253-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MariaDB before MDEV-5800 in version 10.2.2 did not support indexed virtual columns. Non-persistent virtual columns were hidden from storage engines. Only starting with MDEV-5800, InnoDB would create internal metadata on virtual columns. Similar to what was done in MDEV-18084 and MDEV-18960, we adjust two more code paths for the old tables. ha_innobase::build_template(): Do not invoke dict_index_contains_col_or_prefix() for virtual columns if InnoDB does not store the metadata. innobase_build_col_map(): Relax an assertion about the number of columns. ha_innobase::omits_virtual_cols(): Renamed from omits_virtual_cols().
| | * | | cmake 3.14mariadb-10.2.23Sergei Golubchik2019-03-232-2/+7
| | | | | | | | | | | | | | | | | | | | new location for CPackRPM.cmake
| | * | | Updated list of unstable tests for 10.2.23Elena Stepanova2019-03-231-49/+68
| | | | |
| | * | | Fix for MDEV-18276, typo in error message + all other occurrences of referingChris Calender2019-03-237-18/+18
| | | | |
| | * | | MDEV-18954 numa dynamic dependencySergei Golubchik2019-03-221-0/+1
| | | | | | | | | | | | | | | | | | | | don't link with libnuma in release builds
| | * | | cmake: remove unused variableSergei Golubchik2019-03-221-3/+0
| | | | |
| * | | | SEQUENCE tests for MDEV-18892 Regression in slow log and admin statementsAlexander Barkov2019-03-253-62/+133
| | | | | | | | | | | | | | | | | | | | | | | | | Adding tests to cover how SEQUENCE related statements work in combination with the slow log configuration commands.
| * | | | remove dead codeEugene Kosov2019-03-221-3/+0
| | | | | | | | | | | | | | | | | | | | found by @marko
| * | | | remove dead codeEugene Kosov2019-03-221-3/+0
| | | | |
| * | | | remove dead codeEugene Kosov2019-03-221-14/+0
| | | | |