summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| | | | * | | | | | | | wolfssl v4.8.1-stableOleksandr Byelkin2021-10-281-0/+0
| | | | | | | | | | | |
| | | | * | | | | | | | Merge branch '10.3' into 10.4Oleksandr Byelkin2021-10-289-21/+41
| | | | |\ \ \ \ \ \ \ \ | | | | | |/ / / / / / / | | | | | | | | | / / / | | | | | |_|_|_|/ / / | | | | |/| | | | | |
| | | | | * | | | | | Merge branch '10.2' into 10.3Oleksandr Byelkin2021-10-287-19/+35
| | | | | |\ \ \ \ \ \ | | | | | | |/ / / / / | | | | | | | | | / / | | | | | | |_|_|/ / | | | | | |/| | | |
| | | | | | * | | | fix depricated pthread_yield() for tokudbOleksandr Byelkin2021-10-281-1/+3
| | | | | | | | | |
| | | | | | * | | | Merge remote-tracking branch 'connect/10.2' into 10.2Oleksandr Byelkin2021-10-285-16/+30
| | | | | | |\ \ \ \ | | | | | | | |_|_|/ | | | | | | |/| | |
| | | | | | | * | | Fix MDEV-24493Olivier Bertrand2021-10-152-6/+5
| | | | | | | | | |
| | | | | | | * | | Fix bson crash and mongo testOlivier Bertrand2021-07-312-2/+13
| | | | | | | | | |
| | | | | | | * | | Fix slow processing of pretty json files by BSON tablesOlivier Bertrand2021-07-302-8/+12
| | | | | | | | | |
| | | | | | * | | | Fix message severity for "thread pool blocked" messages.Vladislav Vaintroub2021-10-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Those messages don't indicate errors, they should be normal warnings.
| | | | | * | | | | compilation fixes for sys-devel/gcc-11.2.0:11Sergei Golubchik2021-10-282-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for example: sql/sql_prepare.cc:5714:63: error: 'static void Ed_result_set::operator delete(void*, MEM_ROOT*)' called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
* | | | | | | | | | Merge 10.7 into 10.8Marko Mäkelä2021-11-085-7/+33
|\ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ / | |/| | | | | | | |
| * | | | | | | | | MDEV-26664 fixup: clang -Winconsistent-missing-overrideMarko Mäkelä2021-11-082-7/+7
| | | | | | | | | |
| * | | | | | | | | MDEV-26956 LeakSanitizer/Valgrind errors in ↵bb-10.7-MDEV-26956Thirunarayanan Balathandayuthapani2021-11-073-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | trx_mod_table_time_t::start_bulk_insert upon adding system versioning InnoDB fails to apply buffered insert operation for 'mysql/transaction_registry' table during system versioning DDL. To avoid this, DDL calls extra(HA_EXTRA_IGNORE_INSERT) to inform the InnoDB for applying the buffered insert operation.
* | | | | | | | | | Merge branch '10.7' into 10.8Vladislav Vaintroub2021-11-0429-395/+116
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / /
| * | | | | | | | | Merge branch '10.6' into 10.7Vladislav Vaintroub2021-11-0429-395/+116
| |\ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|/ | | |/| | | | | | |
| | * | | | | | | | appveyor - do not use buggy cygwin bison.Vladislav Vaintroub2021-11-041-1/+7
| | | | | | | | | |
| | * | | | | | | | MDEV-26826 fixup: clang++-13 -Wfree-nonheap-objectMarko Mäkelä2021-11-041-1/+1
| | | | | | | | | |
| | * | | | | | | | MDEV-26966: Remove innodb_force_load_corruptedMarko Mäkelä2021-11-049-318/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MySQL 5.5 in commit 177d8b0c125b841c0650d27d735e3b87509dc286 introduced a configuration parameter innodb_force_load_corrupted whose purpose was to allow a corrupted table to be dropped. Given that MDEV-11412 in MariaDB 10.5.4 aims to allow any metadata for a missing or corrupted table to be dropped, and given that MDEV-17567 and MDEV-25506 and related tasks made DDL operations crash-safe, the parameter no longer serves any purpose. Because this obscure parameter was read-only (not settable by a client), it seems that we can simply declare it with MARIADB_REMOVED_OPTION (commit 1bc9cce70273c7f4705fb193abd2c938e3f3402a) without breaking any upgrades. DICT_ERR_IGNORE_INDEX: Replaces DICT_ERR_IGNORE_INDEX_ROOT and DICT_ERR_IGNORE_CORRUPT, which were always set equally. dict_load_indexes(): Report "No indexes found for table" in a uniform way, and only when the DICT_ERR_IGNORE_INDEX flag is not set. If the clustered index is marked corrupted, and the operation is DICT_ERR_IGNORE_DROP (we are about to drop the table), we will load the metadata; else, we will return DB_INDEX_CORRUPT. If SYS_INDEXES.PAGE is FIL_NULL, report an error or warning unless we are about to drop the table. dict_load_table_one(): Simplify the logic.
| | * | | | | | | | MDEV-26933 InnoDB fails to detect page number mismatchbb-10.6-MDEV-26933Marko Mäkelä2021-11-0111-18/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mtr_t::page_lock(): Validate the page number. ibuf_tree_root_get(): Remove assertions that became redundant. The assertions in btr_validate_level() are kind of redundant as well, but because they are ut_a(), they are also present in release builds, while the ones in mtr_t::page_lock() are only present in debug builds. btr_cur_position(): Do not duplicate an assertion that is part of page_cur_position(). dict_load_tablespace(): Introduce a new option DICT_ERR_IGNORE_TABLESPACE that will suppress loading a tablespace when a table is going to be dropped.
| | * | | | | | | | MDEV-25683 fixup: MSVC warning C4018: signed/unsigned mismatchMarko Mäkelä2021-10-291-1/+1
| | | |/ / / / / / | | |/| | | | | |
| | * | | | | | | MDEV-25683 Atomic DDL: With innodb_force_recovery=3 InnoDB: Trying to load ↵Marko Mäkelä2021-10-295-12/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | index but the index tree has been freed The purpose of the parameter innodb_force_recovery is to allow some data to be dumped from a corrupted database. Its values used to be as follows: innodb_force_recovery=0: normal (default) innodb_force_recovery=1: ignore (skip log for) corrupted pages or missing data files when applying the redo log innodb_force_recovery=2: additionally, disable background tasks (such as the purge of committed undo logs) innodb_force_recovery=3: additionally, disable the rollback of recovered incomplete (not committed or XA PREPARE) transactions innodb_force_recovery=4: same as 3 (since MDEV-19514 in MariaDB 10.5) innodb_force_recovery=5: additionally, do not process any undo log, disallow any writes, and force READ UNCOMMITTED isolation level innodb_force_recovery=6: additionally, pretend that ib_logfile0 does not exist (prevent any recovery). Never use this! The bad thing that happens with innodb_force_recovery=3 and innodb_force_recovery=4 is that also the rollback of any recovered DDL transaction will be skipped. This would break the DDL log recovery that was introduced in MDEV-17567. For one data directory sample, the DDL log recovery would hangs due to a conflict on the InnoDB SYS_TABLES table, because the lock holder transaction was not rolled back due to innodb_force_recovery=3. Fix: Make innodb_force_recovery=3 skip the DML transaction rollback only, and make innodb_force_recovery=4 (renamed to SRV_FORCE_NO_DDL_UNDO) behave like innodb_force_recovery=3 used to (skip the rollback of all recovered transactions, both DML and DDL). Startup with innodb_force_recovery=4 will be unaffected by this change. (There may be hangs, possibly preceded by messages about failing to load an index.) Side note: With innodb_force_recovery=5, any DDL log for InnoDB tables will be essentially ignored by InnoDB, but the server will start up.
| | * | | | | | | MDEV-26925 - upgrade fails creating trigger in sysschema, if root user does ↵Vladislav Vaintroub2021-10-286-48/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not exist Fix by removing the trigger. It does not do anything useful anyway.
* | | | | | | | | Spider fix for 10.8+Sergei Golubchik2021-11-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | like in 76f4a78ba26
* | | | | | | | | 10.8 branchSergei Golubchik2021-11-0263-391/+408
|/ / / / / / / /
* | | | | | | | MDEV-26947 UNIQUE column checks fail in InnoDB resulting in table corruptionThirunarayanan Balathandayuthapani2021-11-013-0/+61
| |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | InnoDB fails to rollback the bulk insert buffered operation when trx_mark_sql_stat_end() encounters the DB_DUPLICATE_KEY error. In this case, check table fails with secondary index row count mismatch. InnoDB gives the error "ER_ERROR_DURING_COMMIT" while encountering the DB_DUPLICATE_KEY in trx_mark_sql_stat_end()
* | | | | | | MDEV-26221: DYNAMIC_ARRAY use size_t for sizesSergei Golubchik2021-10-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix test failures on rpm-centos73-ppc64 followup for 401ff6994d84
* | | | | | | workaround for gcc bug 7302Sergei Golubchik2021-10-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it's https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7302 fixed in 2011 affects fmtlib: https://github.com/fmtlib/fmt/issues/1936
* | | | | | | columnstoreSergei Golubchik2021-10-291-0/+0
| | | | | | |
* | | | | | | MDEV-26732 Assertion `0' failed in Item::val_nativepreview-10.7-MDEV-4958-uuidAlexander Barkov2021-10-292-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | add a test case
* | | | | | | MDEV-26785 Hyphens inside the value of uuid datatypeAlexander Barkov2021-10-293-16/+102
| | | | | | |
* | | | | | | MDEV-26742 Assertion `field->type_handler() == this' failed in ↵Alexander Barkov2021-10-292-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FixedBinTypeBundle<NATIVE_LEN, MAX_CHAR_LEN>::Type_handler_fbt::stored_field_cmp_to_item The bug was fixed in 10.5 using INET6 specific tests. This bugs adds only UUID specific tests (no code changes).
* | | | | | | MDEV-26664 Store UUIDs in a more efficient mannerAlexander Barkov2021-10-2915-36/+3601
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UUID values llllllll-mmmm-Vhhh-vsss-nnnnnnnnnnnn are now stored as nnnnnnnnnnnn-vsss-Vhhh-mmmm-llllllll inside the record: - the groups (segments separated by dash) are reordered right-to-left. - the bytes inside the groups are not reordered (stored as before, in big-endian format). This provides a better sorting order: the earlier UUID was generated, the higher it appears in the ORDER BY output. Also, this change enables a good key prefix compression, because the constant part is now in the beginning, while the non-constant part (the timestamp) is in the end.
* | | | | | | Changing the FixedBinTypeBundle parameter to a "storage class" instead of sizesAlexander Barkov2021-10-297-86/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adding a new template FixedBinTypeStorage. - Restoring classes UUID and Inet6 as primitive "storage classes" for their data types. They derive from FixedBinTypeStorage. These storage classes have very few server dependencies so they can later be easily reused in smart engines, e.g. ColumnStore. - Changing the FixedBinTypeBundle parameter from <size_t NATIVE_LEN, size_t MAX_CHAR_LEN> to <class FbtImpl> and fixing UUID and INET6 bundles to get their storage classes as a parameter.
* | | | | | | UUID() function should return UUID, not VARCHAR(36)Sergei Golubchik2021-10-2920-182/+204
| | | | | | |
* | | | | | | MDEV-4958 Adding datatype UUIDAlexander Barkov2021-10-2943-99/+5334
| | | | | | |
* | | | | | | cleanup: uuidSergei Golubchik2021-10-297-47/+25
| | | | | | |
* | | | | | | cleanup: move most of type_inet plugin implementation into the serverSergei Golubchik2021-10-295-2108/+1927
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | factor out the the common code for all plugin types that have a fixed-length native binary representation and a possibly variable-length string representation.
* | | | | | | MDEV-26242: Assertion `i >= 0' failed on setting default_tmp_storage_engine ↵bb-10.7-vicentiu-MDEV-26242Vicențiu Ciorbaru2021-10-293-8/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to 'DEFAULT' in 10.7 Locking / unlocking plugins is already handled by Sys_var_plugin::check method. No need to do that in the specialized checking code, use var->save_value instead to get the plugin handle.
* | | | | | | Merge 10.6 into 10.7Marko Mäkelä2021-10-2838-162/+648
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Merge 10.5 into 10.6Marko Mäkelä2021-10-2837-162/+644
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Merge 10.4 into 10.5Marko Mäkelä2021-10-2838-163/+650
| | |\ \ \ \ \ | | | |/ / / /
| | | * | | | Merge 10.3 into 10.4Marko Mäkelä2021-10-2838-166/+650
| | | |\ \ \ \ | | | | |/ / /
| | | | * | | Merge 10.2 into 10.3Marko Mäkelä2021-10-2838-163/+642
| | | | |\ \ \ | | | | | |/ /
| | | | | * | MDEV-26867: Update the InnoDB version number to 5.7.36Marko Mäkelä2021-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The InnoDB changes in MySQL 5.7.36 that were applicable to MariaDB were covered by MDEV-26864, MDEV-26865, MDEV-26866.
| | | | | * | MDEV-26866 FOREIGN KEY…SET NULL corrupts an index on a virtual columnNikita Malyavin2021-10-289-71/+415
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The initial test case for MySQL Bug #33053297 is based on mysql/mysql-server@27130e25078864b010d81266f9613d389d4a229b. innobase_get_field_from_update_vector is not a suitable function to fetch updated row info, as well as parent table's update vector is not always suitable. For instance, in case of DELETE it contains undefined data. castade->update vector seems to be good enough to fetch all base columns update data, and besides faster, and less error-prone.
| | | | | * | Fix compile warning:bb-10.2-tmpSergei Petrunia2021-10-271-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ha_rocksdb.h:459:15: warning: 'table_type' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
| | | | | * | MDEV-25402 Assertion `!str || str != Ptr' failed in String::copyAlexander Barkov2021-10-273-1/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The assert inside String::copy() prevents copying from from "str" if its own String::Ptr also points to the same memory. The idea of the assert is that copy() performs memory reallocation, and this reallocation can free (and thus invalidate) the memory pointed by Ptr, which can lead to further copying from a freed memory. The assert was incomplete: copy() can free the memory pointed by its Ptr only if String::alloced is true! If the String is not alloced, it is still safe to copy even from the location pointed by Ptr. This scenario demonstrates a safe copy(): const char *tmp= "123"; String str1(tmp, 3); String str2(tmp, 3); // This statement is safe: str2.copy(str1->ptr(), str1->length(), str1->charset(), cs_to, &errors); Inside the copy() the parameter "str" is equal to String::Ptr in this example. But it's still ok to reallocate the memory for str2, because str2 was a constant before the copy() call. Thus reallocation does not make the memory pointed by str1->ptr() invalid. Adjusting the assert condition to allow copying for constant strings.
| | | | | * | Fix tests for PLUGIN_PARTITION=NOMarko Mäkelä2021-10-273-0/+3
| | | | | | |
| | | | | * | MDEV-26868: Session tracking flag in OK_PACKETDiego Dupin2021-10-261-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Take into account client capabilities.
| | | | | * | pthread_yield() is depricated now, so use sched_yield() if possible.Oleksandr Byelkin2021-10-261-5/+7
| | | | | | |