summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-13995 MAX(timestamp) returns a wrong result near DST changebb-10.4-mdev13648Alexander Barkov2018-12-0622-15/+1625
|
* MDEV-17906 Class Binary_stringbb-10.4-mdev7063Alexander Barkov2018-12-053-273/+388
|
* MDEV-17907 Class Static_binary_stringAlexander Barkov2018-12-052-217/+240
|
* MDEV-17905 Add class CharsetAlexander Barkov2018-12-052-53/+81
|
* Add CONTRIBUTING file and modify README file about live QA regarding new ↵Anel Husakovic2018-12-042-5/+57
| | | | contributors
* MDEV-8894 Inserting fractional seconds into MySQL 5.6 master breaks ↵Alexander Barkov2018-12-046-7/+25
| | | | | | | | | | | | | | consistency on MariaDB 10 slave The previous patch 269da4bf192d4fe4291eb3d6013e681af2ddcbef was actually for MDEV-8894 (not for MDEV-5377). It was erroneously pushed with a wrong title. This patch is a small cleanup for MDEV-8894. CREATE TABLE is now not a part of binary logs recorded with MySQL, only INSERT statements are. This will allow to reuse the same binary logs in combinations with different CREATE TABLE statements, to tests different data types.
* MDEV-5377 Row-based replication of MariaDB temporal data types with FSP>0 ↵Alexander Barkov2018-12-0410-56/+256
| | | | into a different column type
* Merge 10.3 into 10.4Marko Mäkelä2018-12-049-17/+128
|\
| * Merge 10.2 into 10.3Marko Mäkelä2018-12-049-17/+128
| |\
| | * MDEV-17432 Assertion `lock_trx_has_sys_table_locks(trx) == 0' failed upon ↵Thirunarayanan Balathandayuthapani2018-12-031-0/+5
| | | | | | | | | | | | | | | | | | ALTER TABLE .. ADD FOREIGN KEY - Fixed innodb.table_flags test case in release build.
| | * MDEV-17432 Assertion `lock_trx_has_sys_table_locks(trx) == 0' failed upon ↵Thirunarayanan Balathandayuthapani2018-12-032-1/+8
| | | | | | | | | | | | | | | | | | | | | ALTER TABLE .. ADD FOREIGN KEY - This is a regression of commit b26e603aebc0c375751cc1d08029b3fb603a0373. While dropping the incompletely created table, InnoDB shouldn't consider that operation as non-atomic one.
| | * MDEV-17871 Crash when running explain with CTEIgor Babaev2018-12-014-7/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the with clause of a query contains a recursive CTE that is not used then processing of EXPLAIN for this query does not require optimization of the unit specifying this CTE. In this case if 'derived' is the TABLE_LIST object created for this CTE then derived->derived_result is NULL and any assignment to derived->derived_result->table causes a crash. After fixing this problem in the code of st_select_lex_unit::prepare() EXPLAIN for such a query worked without crashes. Yet an execution plan for the recursive CTE appeared there. The cause of this problem was an incorrect condition used in JOIN::save_explain_data_intern() that determined whether CTE was to be optimized or not. A similar condition was used in select_describe() and this patch has corrected it as well.
| | * Re-disable a failing testMarko Mäkelä2018-11-301-0/+1
| | |
| | * Fix syntax error on galera/disabled.def fileJan Lindström2018-11-291-2/+0
| | |
| | * MDEV-17810: Improve error printout when decryption fails or we identify page ↵Jan Lindström2018-11-291-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | as both encrypted and unencrypted fil_space_verify_crypt_checksum Print out both stored checksum and calculated checksums for encrypted page and unencrypted page asumptions.
* | | Enable main.connect-abstractSergey Vojtovich2018-12-041-1/+0
| | |
* | | MDEV-16707 Add an accessor in Item_func_like class for the negated attributeAlexander Barkov2018-12-031-0/+3
| | |
* | | MDEV-17319 Assertion `ts_type != MYSQL_TIMESTAMP_TIME' failed upon inserting ↵Alexander Barkov2018-12-029-58/+65
| | | | | | | | | | | | into TIME field
* | | More InnoDB preprocessor cleanupMarko Mäkelä2018-11-3020-144/+40
| | | | | | | | | | | | | | | | | | | | | Remove unnecessary #include. Remove references to UNIV_MATERIALIZE, UNIV_INLINE_ORIGINAL, UNIV_NONINL that are never defined.
* | | Merge 10.3 into 10.4Marko Mäkelä2018-11-300-0/+0
|\ \ \ | |/ /
| * | MDEV-17881: Fix a debug assertionMarko Mäkelä2018-11-301-1/+1
| | | | | | | | | | | | | | | | | | In 10.3, rec_is_metadata() takes a pointer, while in 10.4 it takes a reference as a parameter. I ported this patch from 10.4 to 10.3, and then only ran a release build, not debug build.
* | | Merge 10.3 into 10.4Marko Mäkelä2018-11-301-9/+13
|\ \ \ | |/ /
| * | MDEV-17881 Assertion failure in cmp_dtuple_rec_with_match_bytes after ↵Marko Mäkelä2018-11-301-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instant ADD COLUMN The special flag REC_INFO_MIN_REC_FLAG used to be only set on the first record in the leftmost node pointer page of each level of the tree. It was never set on leaf pages. MDEV-11369 Instant ADD COLUMN in MariaDB Server 10.3 repurposed the flag to identify a hidden metadata record, which is stored in the first record on the leftmost leaf page. If the adaptive hash index points to records in the leftmost leaf page after instant ALTER TABLE, we would have such a metadata record in the table, an assertion could fail when trying to validate the index record. In a release build, we might wrongly qualify the hidden metadata record and thus return garbage results. cmp_dtuple_rec_with_match_bytes(): If the REC_INFO_MIN_REC_FLAG is set on the record, assert that this is the first record on the leftmost page and that the record is a metadata record, and finally return 1, because by definition, anything is greater than the minimum record.
* | | Merge 10.3 into 10.4Marko Mäkelä2018-11-30139-2069/+56
|\ \ \ | |/ /
| * | Merge 10.2 into 10.3Marko Mäkelä2018-11-30143-2092/+59
| |\ \ | | |/ | | | | | | | | | | | | Also, related to MDEV-15522, MDEV-17304, MDEV-17835, remove the Galera xtrabackup tests, because xtrabackup never worked with MariaDB Server 10.3 due to InnoDB redo log format changes.
| | * Fix xtrabackup SST tests by using innodb-safe-truncate=OFF.Jan Lindström2018-11-2911-10/+62
| | | | | | | | | | | | Disable tests that do not yet pass.
| | * Remove some unnecessary InnoDB #includeMarko Mäkelä2018-11-29119-275/+34
| | |
| | * MDEV-17859: Clean up the FOREIGN KEY handlingMarko Mäkelä2018-11-294-147/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dict_create_add_foreigns_to_dictionary(): Do not commit the transaction. The operation can still fail in dict_load_foreigns(), and we want to be able to roll back the transaction. create_table_info_t::create_table(): Never reset m_drop_before_rollback, and never commit the transaction. We use a single point of rollback in ha_innobase::create(). Merge the logic from row_table_add_foreign_constraints().
* | | Merge dict_index_copy_rec_order_prefix() to its only callerMarko Mäkelä2018-11-283-58/+18
| | | | | | | | | | | | | | | btr_pcur_store_position(): Merge the code from dict_index_copy_rec_order_prefix().
* | | Merge 10.3 into 10.4Marko Mäkelä2018-11-287-14/+123
|\ \ \ | |/ /
| * | Merge 10.2 into 10.3Marko Mäkelä2018-11-287-14/+123
| |\ \ | | |/
| | * MDEV-17859 Operating system errors in file operations after failed CREATEMarko Mäkelä2018-11-284-14/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a regression due to MDEV-17816. When creating a table fails, we must roll back the dictionary transaction. Because the rollback may rename tables, and because InnoDB lacks proper undo logging for CREATE operations, we must drop the incompletely created table before rolling back the transaction, which could include a RENAME operation. But, we must not blindly drop the table by name; after all, the operation could have failed because another table by the same name already existed. create_table_info_t::m_drop_before_rollback: A flag that is set if the table needs to be dropped before transaction rollback. create_table_info_t::create_table(): Remove some duplicated error handling. ha_innobase::create(): On error, only drop the table if it was actually created.
| | * MDEV-13155: XA recovery not supported for RocksDBSergei Petrunia2018-11-283-0/+71
| | | | | | | | | | | | Added a testcase
* | | Making the test for MDEV-17854 independent from the host time zoneAlexander Barkov2018-11-282-1/+5
| | |
* | | MDEV-17854 Assertion `decimals <= 6' failed in my_time_fraction_remainder on ↵Alexander Barkov2018-11-283-1/+19
| | | | | | | | | | | | SELECT with NULLIF and FROM_UNIXTIME on incorrect time
* | | Merge 10.3 into 10.4Marko Mäkelä2018-11-2816-500/+267
|\ \ \ | |/ /
| * | Merge 10.2 into 10.3Marko Mäkelä2018-11-2813-502/+264
| |\ \ | | |/
| | * Remove unused mem_heap_allocatorMarko Mäkelä2018-11-281-99/+0
| | | | | | | | | | | | The code became unused in commit 10590dd39cc1e742bbf395c3285201a6a31c5284.
| | * MDEV-17849 Undo tablespace truncation recovery fails to shrink fileMarko Mäkelä2018-11-277-388/+254
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fil_space_t::add(): Replaces fil_node_create(), fil_node_create_low(). Let the caller pass fil_node_t::handle, to avoid having to close and re-open files. fil_node_t::read_page0(): Refactored from fil_node_open_file(). Read the first page of a data file. fil_node_open_file(): Open the file only once. srv_undo_tablespace_open(): Set the file handle for the opened undo tablespace. This should ensure that ut_ad(file->is_open()) no longer fails in recv_add_trim(). xtrabackup_backup_func(): Remove some dead code. xb_fil_cur_open(): Open files only if needed. Undo tablespaces should already have been opened.
| | * Remove the redundant variable fil_n_file_openedMarko Mäkelä2018-11-276-13/+3
| | |
| | * MDEV-17851 Assertion failure srv_undo_tablespaces > 1Marko Mäkelä2018-11-271-5/+3
| | | | | | | | | | | | | | | trx_assign_rseg_low(): Skip dedicated undo tablespaces if innodb_undo_tablespaces=0 has been set after the database was created.
| | * MDEV-17816: Follow-up fixMarko Mäkelä2018-11-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When dropping a partially created table due to failure, use SQLCOM_TRUNCATE instead of SQLCOM_DROP_DB, so that no foreign key constraints will be touched. If any constraints were added as part of the creation, they would be reverted as part of the transaction rollback. We need an explicit call to row_drop_table_for_mysql(), because InnoDB does not do proper undo logging for CREATE TABLE, but would only drop the table at the end of the rollback. This would not work if the transaction combines both RENAME and CREATE, like TRUNCATE now does.
| * | MDEV-17771: Add Galera ist and sst tests using mariabackupJan Lindström2018-11-274-1/+6
| | | | | | | | | | | | Add check that file key management plugin is found.
* | | MDEV-15073: Generic UDAF parser code in server for windows functionsOleksandr Byelkin2018-11-2710-0/+386
| | | | | | | | | | | | | | | | | | Added support for usual agreggate UDF (UDAF) Added remove() call support for more efficient window function processing Added example of aggregate UDF with efficient windows function support
* | | MDEV-16715 Add accessors for Item_sum and Item_func_group_concat classesAlexander Barkov2018-11-271-1/+11
| | |
* | | MDEV-16705 Add two accessors for multi_delete classAlexander Barkov2018-11-271-0/+4
| | |
* | | MDEV-16725 Add accessor methods for classes in item_timefunc.hAlexander Barkov2018-11-271-0/+9
| | |
* | | Fixing embedded tests for MDEV-16991Alexander Barkov2018-11-272-5/+5
| | |
* | | Merge 10.3 into 10.4Marko Mäkelä2018-11-2668-274/+2589
|\ \ \ | |/ /
| * | Merge 10.2 into 10.3Marko Mäkelä2018-11-263-0/+19
| |\ \ | | |/