summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-24601: INFORMATION_SCHEMA doesn't differentiate between column and ↵bb-10.5-anel-MDEV-24601-IS.table_field_constraintsAnel Husakovic2021-03-165-61/+129
| | | | table-level CHECK constraints
* MDEV-25123 support MSVC ASANVladislav Vaintroub2021-03-124-15/+29
|
* One more try: Fix -Wconversion on GCC 4 to 9Marko Mäkelä2021-03-111-1/+1
|
* After-merge fix: -Wconversion in GCC 4 to 9Marko Mäkelä2021-03-111-1/+1
|
* Merge 10.4 into 10.5Marko Mäkelä2021-03-1146-236/+632
|\
| * Merge 10.3 into 10.4Marko Mäkelä2021-03-119-7/+110
| |\
| | * MDEV-25106 Deprecation warning for innodb_checksum_algorithm=none,innodb,...Marko Mäkelä2021-03-113-3/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MDEV-25105 (commit 7a4fbb55b02b449a135fe935f624422eaacfdd7c) in MariaDB 10.6 will refuse the innodb_checksum_algorithm values none, innodb, strict_none, strict_innodb. We will issue a deprecation warning if innodb_checksum_algorithm is set to any of these non-default unsafe values. innodb_checksum_algorithm=crc32 was made the default in MySQL 5.7 and MariaDB Server 10.2, and given that older versions of the server have reached their end of life, there is no valid reason to use anything else than innodb_checksum_algorithm=crc32 or innodb_checksum_algorithm=strict_crc32 in MariaDB 10.3. Reviewed by: Sergei Golubchik
| | * MDEV-25070 fixup: Correct the resultMarko Mäkelä2021-03-111-1/+1
| | |
| | * MDEV-25070 SIGSEGV in fts_create_in_mem_aux_tableThirunarayanan Balathandayuthapani2021-03-103-1/+26
| | | | | | | | | | | | | | | | | | | | | InnoDB set the space in dict_table_t as NULL when table is discarded. So InnoDB shouldn't use the space present in table to detect whether the given tablespace is temporary tablespace.
| | * MDEV-24868 Server crashes in optimize_schema_tables_memory_usage after ↵Nayuta Yanagisawa2021-03-083-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | select from information_schema.innodb_sys_columns optimize_schema_tables_memory_usage() crashed when its argument included TABLE struct that was not fully initialized. To prevent such a crash, we check if a table is an information schema table at the beginning of each iteration. Closes #1768
| * | MDEV-24668 fixup: uninitialized return value with GaleraMarko Mäkelä2021-03-111-1/+1
| | |
| * | MDEV-25107 Check TABLE miscalutates the length of columnThirunarayanan Balathandayuthapani2021-03-111-2/+2
| | | | | | | | | | | | | | | | | | - This is caused by merge commit a26e7a37266d8296094dabca52f0f6646fd73926. InnoDB fails to fetch the next index field when there is a externally stored column length check involved.
| * | MDEV-20946: Hard FTWRL deadlock under user level locksRinat Ibragimov2021-03-104-1/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was possibile for a user to create an interlocked state which may go on for a significant period of time. There is a tight loop in the FTWRL code path that tries to repeatedly acquire a read lock. As the weight of FTWRL lock is the smallest among others, it's always selected by the deadlock detector, but can never be killed. Imaging the following sequence: connection_0 connection_1 GET_LOCK("l1", 0); LOCK TABLES t WRITE; FLUSH TABLES WITH READ LOCK; GET_LOCK("l1", 1000); The GET_LOCK statement in connection_1 triggers the deadlock detector, which tries to select the lock in FTWRL, since its weight is 0. However, since a loop in Global_read_lock::lock_global_read_lock() tries to always win, it tries to acquire lock again. Which invokes the deadlock detector, and that cycle continues until GET_LOCK in connection_1 times out. This patch resolves the live-locking by introducing a dynamic bonus to the deadlock weight associated with every lock. Each lock gets a bonus weight each time it's selected by the deadlock detector. In case of a live-lock situation, those locks that cannot be killed, get additional weight each iteration. Eventually their weight becomes so high that the deadlock detector shifts its attention to other lock, until it find the one that can be killed.
| * | MDEV-25057 Assertion `n_fields < dtuple_get_n_fields(entry)'Thirunarayanan Balathandayuthapani2021-03-093-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | failed in dtuple_convert_big_rec In dtuple_convert_big_rec(), InnoDB fails to consider the instant metadata blob while choosing the variable length field.
| * | arguments overflow fix proposal. the list is assumed to be implictly null ↵David CARLIER2021-03-091-1/+2
| | | | | | | | | | | | terminated at usage time.
| * | mariabackup utility, binary path implementation for Mac.David CARLIER2021-03-091-0/+10
| | | | | | | | | | | | | | | implements in a native way get_exepath which gives reliably the full path.
| * | MDEV-24363 (followup fix) mysql.user view shouldRobert Bindar2021-03-085-9/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not be dropped if the DEFINER is custom. Revert changes to MDEV-23102 tests as they were designed to catch this corner case. The explanation for this corner case is that users historically used to tweak the mysql.user table and probably still do even though mysql.user is now a view. Thus, if the DEFINER of the view is not default, i.e. root@localhost or mariadb.sys@localhost, we should avoid dropping the view during upgrade process to not discard potential custom changes.
| * | MDEV-24975 Server consumes extra 4G memory upon querying ↵Sergei Golubchik2021-03-083-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | INFORMATION_SCHEMA.OPTIIMIZER_TRACE if a query used no fields from an I_S table, we were creating a temp table with one, first, field (as a table cannot have zero fields), with its length truncated to 1. Now - force also this dummy field to be a normal field, not a BLOB
| * | mark Aria allocations for temp tables as MY_THREAD_SPECIFICSergei Golubchik2021-03-089-63/+81
| | |
| * | MDEV-24668 debug assert on SET PASSWORD when binlog failsSergei Golubchik2021-03-084-4/+19
| | | | | | | | | | | | | | | don't use `result` both for an error status and to remember if the mutex was locked
| * | cleanup: renames, no need to create a new .inc fileSergei Golubchik2021-03-085-148/+80
| | | | | | | | | | | | if it's the whole content of a test anyway.
| * | MDEV-24363 (followup refactor) avoid listing mysql.userRobert Bindar2021-03-084-198/+6
| | | | | | | | | | | | | | | | | | view definition in tests as it wastes lots of time when they fail for minor fixes like adding/changing a new column in the view, also it's less code
| * | MDEV-24363 mysql.user password_expired column is incorrectRobert Bindar2021-03-0814-13/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | The mysql.user view password_expired column should display the right result, in sync with whether an account has its password expired or not For mariadb 10.4+ upgrades before this commit, the mysql.user view needs to be dropped and recreated to actually make the view display the correct value for the password_expired column.
* | | MDEV-25110 [FATAL] InnoDB: Trying to write ... outside the boundsMarko Mäkelä2021-03-113-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 118e258aaac5da75a2ac4556201aaea3688fac67 (part of MDEV-23855) we inadvertently broke crash recovery, reintroducing MDEV-11556. fil_system_t::extend_to_recv_size(): Extend all open tablespace files to the recovered size. recv_sys_t::apply(): Invoke fil_system.extend_to_recv_size() at the start of each batch. In this way, any fil_space_t::recv_size changes that were parsed after the file was opened will be applied.
* | | MDEV-25031 Not applying INSERT_*_REDUNDANT due to corruption on pageMarko Mäkelä2021-03-112-5/+7
| | | | | | | | | | | | | | | | | | | | | page_apply_insert_redundant(): Replace a too strict condition hdr_c > pextra_size. It turns out that page_cur_insert_rec_low() is not even computing the extra_size of cur->rec when it is trying to reuse header bytes of the preceding record.
* | | connect storage, little compile issues fix proposal.David CARLIER2021-03-112-9/+9
| | |
* | | MDEV-24949: Enabling idle flushing (possible regression from MDEV-23855)Krunal Bauskar2021-03-113-5/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Currently page cleaner thread will stop flushing if dirty_pct < innodb_max_dirty_pages_pct_lwm. - If the server is not performing any activity then said resources/time could be used to flush the pending dirty pages and keep buffer pool clean for the next burst of the cycle. This flushing is called idle flushing. - flushing logic underwent a complete revamp in 10.5.7/8 and as part of the revamp idle flushing logic got removed. - New proposed logic of idle flushing is based on updated logic of the page cleaner that will enable idle flushing if - buf page cleaner is idle - there are dirty pages (< innodb_max_dirty_pages_pct_lwm) - server is not performing any activity Logic will kickstart the idle flushing bounded by innodb_io_capacity. (Thanks to Marko Makela for reviewing the patch and idea right from the its inception).
* | | MDEV-24422 Server crashes in ha_connect::GetRealType upon ALTER TABLEMonty2021-03-105-8/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that the CONNECT engine is trying to open the .frm file during drop_table(), which the code did not take into account. Fixed by adding the HA_REUSES_FILE_NAMES table flag to CONNECT. Other things: - Fixed a wrong test of HA_REUSE_FILE_NAMES of in mysql_alter_table() (Comment was correct, no the code) - Added a test in the connect engine that if the .frm it tries to use in delete is not made for connect, it will generate an error instead of crash.
* | | Skip mysql_json_mysql_upgrade if plugin is not builtVicențiu Ciorbaru2021-03-101-0/+4
| | | | | | | | | | | | | | | Do not use --source directive as we don't want to load the plugin when the test starts.
* | | Deb: Sync downstream changes upstreamOtto Kekäläinen2021-03-104-40/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Reduce Build-Depends https://salsa.debian.org/mariadb-team/mariadb-10.5/-/commit/150bf990c6059a2fca95ea9bc4d108c9789b179d Dependencies chrpath, dh-apparmor and libarchive-dev are not needed. Fixes buildbot sid failures that error on: Unmet build dependencies: chrpath dh-apparmor libarchive-dev - Salsa-CI: Remove mysql-5.7 upgrade in Sid test as package was removed https://salsa.debian.org/mariadb-team/mariadb-10.5/-/commit/6f55ac620ce26046475b2a430838367732b47d54 Also clean away extra Salsa-CI markup not needed anymore. - Autopkgtest: Simplify autopkgtest 'smoke' to be easier to debug https://salsa.debian.org/mariadb-team/mariadb-10.5/-/commit/836907989ad8d355b2f88f8013a6acb8a64cf7d9 - Autopkgtest: Skip main.failed_auth_unixsocket on armhf and i386 https://salsa.debian.org/mariadb-team/mariadb-10.5/-/commit/74601f8b31a6c59e825089c52a1ca21545062813
* | | fixup 449871458b49f224b27b26858784ef5408353f1bVladislav Vaintroub2021-03-091-3/+4
| | |
* | | Fix Windows clang build with newest cmakeVladislav Vaintroub2021-03-081-2/+8
| | |
* | | After-merge fix: GCC -WconversionMarko Mäkelä2021-03-081-1/+1
| | |
* | | Merge 10.4 into 10.5Marko Mäkelä2021-03-0820-77/+468
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2021-03-0816-75/+184
| |\ \ | | |/
| | * Fixed that unit.pcre_test works again.Monty2021-03-051-2/+2
| | |
| | * Merge 10.2 into 10.3Marko Mäkelä2021-03-057-61/+42
| | |\
| | | * MDEV-22929 fixup. Print "completed OK!" if page corruption and ↵Vladislav Vaintroub2021-03-053-14/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | --log-innodb-page-corruption Since we do not stop at corrupted page error, there is no reason to log a backup error.
| | | * fixup 58b56f14a096285a0e51b2233fc35398f1b01f5a: Remove dead codeMarko Mäkelä2021-03-043-33/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | row_prebuilt_t::m_no_prefetch: Remove (it was always false). row_prebuilt_t::m_read_virtual_key: Remove (it was always false). Only ha_innopart ever set these fields.
| | | * MDEV-25051 Race condition between persistent statistics and RENAME TABLE or ↵Marko Mäkelä2021-03-041-14/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TRUNCATE innobase_rename_table(): Invoke dict_stats_wait_bg_to_stop_using_table() to ensure that dict_stats_update() cannot be accessing the table name that we will be modifying. If we are executing RENAME rather than TRUNCATE, reset the flag at the end so that persistent statistics can be calculated again. The race condition was encountered with ASAN and rr. Sorry, there is no test case, like there is for nothing related to dict_stats_wait_bg_to_stop_using_table(). The entire code is an ugly work-around for the failure of dict_stats_process_entry_from_recalc_pool() to acquire MDL. Note: It appears that an ALTER TABLE that is not rebuilding the table will fail to reset the flag that blocks the processing of statistics.
| | * | Merge branch '10.2' into 10.3Vicențiu Ciorbaru2021-03-048-10/+140
| | |\ \ | | | |/
| | | * MDEV-25032: Window functions without column references get removed from ORDER BYVicențiu Ciorbaru2021-03-044-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | row_number() over () window function can be used without any column in the OVER clause. Additionally, the item doesn't reference any tables, as it's not effectively referencing any table. Rather it is specifically built based on the end temporary table used for window function computation. This caused remove_const function to wrongly drop it from the ORDER list. Effectively, we shouldn't be dropping any window function from the ORDER clause, so adjust remove_const to account for that. Reviewed by: Sergei Petrunia sergey@mariadb.com
| | | * MDEV-24748 extern column check missing in btr_index_rec_validate()Thirunarayanan Balathandayuthapani2021-03-033-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In btr_index_rec_validate(), externally stored column check is missing while matching the length of the field with the length of the field data stored in record. Fetch the length of the externally stored part and compare it with the fixed field length.
| | | * MDEV-20648 InnoDB: Failing assertion: !(*node)->being_extended, ↵bb-10.2-MDEV-20648Thirunarayanan Balathandayuthapani2021-03-031-14/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | innodb.log_data_file_size failed in buildbot, assertion `!space->is_stopping()' InnoDB should check whether the tablespace is being deleted while extending the tablespace.
| * | | Merge 10.3 into 10.4Marko Mäkelä2021-03-085-10/+305
| |\ \ \ | | |/ /
| | * | MDEV-22786 Crashes with nested table value constructorsIgor Babaev2021-03-037-13/+333
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug caused crashes of the server when processing queries with nested table value constructors (TVC) . It happened because the grammar rules to parse TVC used the same global lists for both nested TVC and nesting TVC. As a result invalid select trees were constructed for queries with nested TVC and this led to crashes at the prepare stage. This patch provides its own lists structures for each TVC nest level. Besides the patch fixes a bug in the function wrap_tvc() that missed inheritance of the SELECT_LEX::exclude_from_table_unique_test for selects that wrapped TVCs. This inheritance is critical for specifications of derived tables that employ nested TVCs. Approved by dmitry.shulga@mariadb.com
* | | | Cleanup: add override qualifiers to item.hMarko Mäkelä2021-03-051-910/+909
| | | |
* | | | MDEV-24600 fixup: Remove unused trx_register_for_2pc()Marko Mäkelä2021-03-051-12/+0
| | | |
* | | | Merge 10.4 into 10.5Marko Mäkelä2021-03-0540-275/+771
|\ \ \ \ | |/ / /
| * | | Remove unused HA_EXTRA_FAKE_START_STMTMarko Mäkelä2021-03-054-13/+3
| | | | | | | | | | | | | | | | This is fixup for commit f06a0b5338694755842a58798bb3a9a40da78bfd.