summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-22014: Rowid Filtering is not displayed well in the optimizer tracebb-10.5-mdev22014Sergei Petrunia2020-03-299-265/+222
| | | | | | - Print the rowid filters that are available for use with each table. - Make print_best_access_for_table() print which filter it has picked. - Make best_access_path() print the filter for considered ref accesses.
* MDEV-13626: Import and adjust buffer pool resizing tests from MySQL 5.7Marko Mäkelä2020-03-1910-7/+634
| | | | | | | | | | Adapt from 10.2: git cherry-pick bfb5e1c3f0ba57b54f245d7cc2d1dfabaa7c4462 buf_pool_t::chunk_t::create(), buf_pool_t::resize(): Restore or simplify the debug instrumentation. buf_resize_callback(): Add DBUG_ENTER/DBUG_VOID_RETURN so that the DBUG_EXECUTE_IF in buf_pool_t::resize() can be triggered.
* MDEV-21962: Fix a bug in buf_pool_t::clear_hash_index()Marko Mäkelä2020-03-192-6/+3
|
* MDEV-21975: Fix the resultMarko Mäkelä2020-03-191-1/+1
|
* MDEV-21975 Add BINLOG REPLAY privilege and bind new privileges to ...Andrei Elkin2020-03-182-0/+61
| | | | Testing is extended with a block added up to binlog_grant.
* Travis-CI: Ignore clang/GCC 6 that permanently fails on 10.5 branchbb-10.5-pr1471Otto Kekäläinen2020-03-181-0/+3
| | | | | | The purpose of a CI system is to validate if a change is acceptable or not. Thus tests that always fail should be ignored, otherwise the result of the CI (green/red) is not reliable and actionable.
* Travis-CI: Shorten deb build log to keep it under 4 MBOtto Kekäläinen2020-03-181-2/+7
| | | | | | | There is a 4 MB hard limit on Travis-CI and build output needs to be less than that. Silencing the 'make install' step gets rid of a lot of "Installing.." and "Missing.." and removing all mysql-test files will make the dh_missing warnings much shorter.
* Deb: Fix executable bit so dh-exec works (regression in fd2dc9c3fdfb7)Otto Kekäläinen2020-03-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Package contents before this fix: libmariadb-dev-compat drwxr-xr-x root/root ./ drwxr-xr-x root/root ./usr/ drwxr-xr-x root/root ./usr/bin/ lrwxrwxrwx root/root ./usr/bin/mysql_config drwxr-xr-x root/root ./usr/include/ lrwxrwxrwx root/root ./usr/include/mysql drwxr-xr-x root/root ./usr/lib/ drwxr-xr-x root/root ./usr/lib/${DEB_HOST_MULTIARCH}/ drwxr-xr-x root/root ./usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/ lrwxrwxrwx root/root ./usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/mysqlclient.pc drwxr-xr-x root/root ./usr/lib/x86_64-linux-gnu/ lrwxrwxrwx root/root ./usr/lib/x86_64-linux-gnu/libmysqlclient.a lrwxrwxrwx root/root ./usr/lib/x86_64-linux-gnu/libmysqlclient_r.a lrwxrwxrwx root/root ./usr/lib/x86_64-linux-gnu/libmysqlclient_r.so lrwxrwxrwx root/root ./usr/lib/x86_64-linux-gnu/libmysqlclient.so drwxr-xr-x root/root ./usr/share/ drwxr-xr-x root/root ./usr/share/doc/ drwxr-xr-x root/root ./usr/share/doc/libmariadb-dev-compat/ -rw-r--r-- root/root ./usr/share/doc/libmariadb-dev-compat/changelog.gz -rw-r--r-- root/root ./usr/share/doc/libmariadb-dev-compat/copyright With this fix the '/usr/lib/${DEB_HOST_MULTIARCH}/' becomes correctly populated with the actual architecture dependent path. Also add dh-exec to Travis-CI testing so that CI passes. As an extra small thing, clean away excess executable bit from Mroonga plugin maintainer script that does not need it.
* MDEV-21942: Correctly use newer libpcre2 version (regression in b6b6980)Otto Kekäläinen2020-03-182-1/+8
| | | | | | | | | | If libpcre2 (10.x) is not defined and only the older libpcre3 (8.x) would be available, the build would attempt to download it from the Internet, violating many build environment restrictions. Commit b6b69806867b88f3aab82c34a3a881931628ef9e attempted to fix MDEV-21942 but was incomplete, and after in CI systems started failing since the .travis.yml update was missing.
* Merge branch '10.4' into 10.5Vicențiu Ciorbaru2020-03-184-14/+110
|\
| * Merge branch '10.3' into 10.4Vicențiu Ciorbaru2020-03-183-4/+4
| |\
| | * Change exec bit to allow dh-exec to workVicențiu Ciorbaru2020-03-181-0/+0
| | |
| | * Fixed multi_update_debug.testMonty2020-03-162-4/+4
| | | | | | | | | | | | | | | | | | | | | This should fix the following failure: + Warnings: + Warning 1639 debug sync point wait timed out
| * | Updated aria_pack to support transactional tablesMonty2020-03-171-10/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added options: --datadir --ignore-control-file --require-control-file - Improved error messages if open fails - If control file can't be found/opened, assume that all rows in the tables are commited.
* | | MDEV-21962 Allocate buf_pool staticallyMarko Mäkelä2020-03-1829-2168/+1873
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to MDEV-15058, there is only one InnoDB buffer pool. Allocating buf_pool statically removes one level of pointer indirection and makes code more readable, and removes the awkward initialization of some buf_pool members. While doing this, we will also declare some buf_pool_t data members private and replace some functions with member functions. This is mostly affecting buffer pool resizing. This is not aiming to be a complete rewrite of buf_pool_t to a proper class. Most of the buffer pool interface, such as buf_page_get_gen(), will remain in the C programming style for now. buf_pool_t::withdrawing: Replaces buf_pool_withdrawing. buf_pool_t::withdraw_clock_: Replaces buf_withdraw_clock. buf_pool_t::create(): Repalces buf_pool_init(). buf_pool_t::close(): Replaces buf_pool_free(). buf_bool_t::will_be_withdrawn(): Replaces buf_block_will_be_withdrawn(), buf_frame_will_be_withdrawn(). buf_pool_t::clear_hash_index(): Replaces buf_pool_clear_hash_index(). buf_pool_t::get_n_pages(): Replaces buf_pool_get_n_pages(). buf_pool_t::validate(): Replaces buf_validate(). buf_pool_t::print(): Replaces buf_print(). buf_pool_t::block_from_ahi(): Replaces buf_block_from_ahi(). buf_pool_t::is_block_field(): Replaces buf_pointer_is_block_field(). buf_pool_t::is_block_mutex(): Replaces buf_pool_is_block_mutex(). buf_pool_t::is_block_lock(): Replaces buf_pool_is_block_lock(). buf_pool_t::is_obsolete(): Replaces buf_pool_is_obsolete(). buf_pool_t::io_buf: Make default-constructible. buf_pool_t::io_buf::create(): Delayed 'constructor' buf_pool_t::io_buf::close(): Early 'destructor' HazardPointer: Make default-constructible. Define all member functions inline, also for derived classes.
* | | MDEV-21975 Add BINLOG REPLAY privilege and bind new privileges to ↵Alexander Barkov2020-03-1831-65/+645
| | | | | | | | | | | | gtid_seq_no, preudo_thread_id, server_id, gtid_domain_id
* | | MDEV-21966: Fix clang -Winconsistent-missing-overrideMarko Mäkelä2020-03-181-7/+7
| | |
* | | MDEV-21973 Bind REPLICATION {MASTER|SLAVE} ADMIN to gtid_* GLOBAL-only ↵Alexander Barkov2020-03-1815-4/+423
| | | | | | | | | | | | system variables
* | | merge 10.4 to 10.5Monty2020-03-1873-481/+730
|\ \ \ | |/ /
| * | Fixed that caused failure in --ps binlog_encryption.rpl_gtid_basicMonty2020-03-172-3/+7
| | | | | | | | | | | | | | | Problem was that replace_dynstr_append_mem() assumed strings are null terminated which is not always the case.
| * | MDEV-21932 A fast plan with ROR index-merge is ignored whenbb-10.4-monty3Igor Babaev2020-03-173-0/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | 'index_merge_sort_union=off' When index_merge_sort_union is set to 'off' and index_merge_union is set to 'on' then any evaluated index merge scan must consist only of ROR scans. The cheapest out of such index merges must be chosen. This index merge might not be the cheapest index merge.
| * | Removed double records_in_range calls from multi_range_read_info_constMonty2020-03-1768-483/+634
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was to remove a performance regression between 10.3 and 10.4 In 10.5 we will have a better implementation of records_in_range that will enable us to get more statistics. This change was not done in 10.4 because the 10.5 will be part of a larger change that is not suitable for the GA 10.4 version Other things: - Changed default handler block_size to 8192 to fix things statistics for engines that doesn't set the block size. - Fixed a bug in spider when using multiple part const ranges (Patch from Kentoku)
| * | MDEV-18439 Windows builds should have core_file=1 by defaultVladislav Vaintroub2020-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It did not work, eventhough the default for Windows was changed to 1 for the corresponding system variable. This be because test_flags was zeroed mysql_init_variables. The patch fixes this glitch.
* | | MDEV-21972 Bind REPLICATION MASTER ADMIN to master_verify_checksumAlexander Barkov2020-03-184-1/+61
| | |
* | | MDEV-21971 Bind BINLOG ADMIN to binlog_annotate_row_events and ↵Alexander Barkov2020-03-187-2/+165
| | | | | | | | | | | | binlog_row_image global and session variables
* | | MDEV-21969 Bind REPLICATION SLAVE ADMIN to relay_log_*, sync_master_info, ↵Alexander Barkov2020-03-1812-5/+301
| | | | | | | | | | | | sync_relay_log, sync_relay_log_info
* | | MDEV-21967 Bind REPLICATION {MASTER|SLAVE} ADMIN to rpl_semi_sync_* variablesAlexander Barkov2020-03-1820-9/+546
| | |
* | | MDEV-21966 Bind REPLICATION SLAVE ADMIN to a number of global system variablesAlexander Barkov2020-03-1851-27/+1392
| | |
* | | MDEV-21963 Bind BINLOG ADMIN to a number of global system variablesAlexander Barkov2020-03-1731-14/+910
| | |
* | | MDEV-21961 Bind CONNECTION ADMIN to a number of global system variablesAlexander Barkov2020-03-1730-21/+1531
| | |
* | | MDEV-21960 Bind READ_ONLY ADMIN to @@read_onlyAlexander Barkov2020-03-176-2/+115
| | |
* | | MDEV-21957 Bind BINLOG ADMIN to @@binlog_format, @@binlog_direct_.., ↵Alexander Barkov2020-03-1714-19/+347
| | | | | | | | | | | | @@sql_log_bin
* | | Merge 10.4 into 10.5Marko Mäkelä2020-03-1717-96/+220
|\ \ \ | |/ /
| * | MDEV-16188: Fix clang 10 -Wimplicit-int-float-conversionMarko Mäkelä2020-03-161-1/+2
| | | | | | | | | | | | | | | | | | mi_records_in_range(): Because HA_POS_ERROR cannot be accurately represented in double (it will be off by one), add an explicit cast to silence the warning.
| * | MDEV-5313: Fix GCC 10 -Wenum-conversionMarko Mäkelä2020-03-161-1/+9
| | |
| * | Merge 10.3 into 10.4Marko Mäkelä2020-03-1620-98/+430
| |\ \ | | |/
| | * MDEV-13134/MDEV-21855: Add a test caseMarko Mäkelä2020-03-162-0/+147
| | |
| | * Merge 10.2 into 10.3Marko Mäkelä2020-03-1318-104/+283
| | |\
| | | * Fix GCC 10.0 -Wstringop-overflowMarko Mäkelä2020-03-131-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | myrg_open(): Reduce the scope of the variable 'end' and simplify the code. For some reason, I got no warning for this code in the 10.2 branch, only 10.3 or later. The ENGINE=MERGE is covered by the tests main.merge, main.merge_debug, and main.merge-big.
| | | * MDEV-10047: table-based master info repositorySujatha2020-03-133-1/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: ======= When we upgrade from "mysql" to "mariadb" if slave is using repositories as tables their data is completely ignored and no warning is issued in error log. Fix: === "mysql_upgrade" test should check for the presence of data in "mysql.slave_master_info" and "mysql.slave_relay_log_info" tables. When tables have some data the upgrade script should report a warning which hints users that the data in repository tables will be ignored.
| | | * Fix clang 10 warningsMarko Mäkelä2020-03-132-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _ma_fetch_keypage(): Correct an assertion that used to always hold. Thanks to clang -Wint-in-bool-context for flagging this. double_to_datetime_with_warn(): Suppress -Wimplicit-int-float-conversion by adding a cast. LONGLONG_MAX converted to double will actually be LONGLONG_MAX+1.
| | | * MDEV-21933 INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES accesses SYS_DATAFILESMarko Mäkelä2020-03-133-28/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All tablespace metadata is buffered in fil_system. There is a LRU mechanism, but that only controls the opening and closing of fil_node_t::handle. It is much more efficient and less error-prone to access data file names by looking up the fil_space_t object rather than by essentially joining each row with an access to SYS_DATAFILES via the InnoDB internal SQL parser. dict_get_first_path(): Declare static. The function may only be needed when loading or updating the data dictionary. Also, change a condition in order to avoid a bogus GCC 10 -Wstringop-overflow warning for mem_strdupl() about len==ULINT_UNDEFINED. i_s_sys_tablespaces_fill_table(): Do not access other InnoDB internal dictionary tables than SYS_TABLESPACES.
| | | * Fix GCC 10 -Wclass-memaccessMarko Mäkelä2020-03-131-1/+1
| | | |
| | | * Fix GCC 10 -Wstringop-truncationMarko Mäkelä2020-03-131-0/+2
| | | |
| | | * Update libmariadbMarko Mäkelä2020-03-131-0/+0
| | | | | | | | | | | | | | | | This fixes GCC 10.0.1 -Wstringop-truncation and some typos.
| | | * Merge 10.1 into 10.2Marko Mäkelä2020-03-138-92/+53
| | | |\
| | | | * Merge 5.5 into 10.1Marko Mäkelä2020-03-131-7/+7
| | | | |\
| | | | | * Cleanup: clang-10 -Wmisleading-indentationMarko Mäkelä2020-03-111-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, remove some trailing white space and add missing static qualifier to free_annotate_event().
| | | | * | MDEV-21918 improve page_zip_verify_checksum()Eugene Kosov2020-03-112-44/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | actually, page_zip_verify_checksum() generally allows all-zeroes checksums because our CRC32 checksum is something like crc_1 ^ crc_2 ^ crc_3 Also, all zeroes page is considered correct. As a side effect fix nasty reinterpret_cast<> UB Also, since c0f47a4a5842 innodb_checksum_algorithm=full_crc32 exists which computes CRC32 in one go (without bitwise arithmetic)
| | | | * | fix typedef-related warning and cleanup using namespace stdEugene Kosov2020-03-116-11/+9
| | | | | |