summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* README.md: Break off long lineTeodor Mircea Ionita2018-09-101-2/+2
|
* README.md: Update Travis CI badge to active branchTeodor Mircea Ionita2018-09-101-1/+1
|
* Fixed c++11 narrowing errorSergey Vojtovich2018-09-091-1/+1
| | | | | | | | | | | | | sql/table.cc:8561:42: error: non-constant-expression cannot be narrowed from type 'uint' (aka 'unsigned int') to '__darwin_suseconds_t' (aka 'int') in initializer list [-Wc++11-narrowing] timeval end_time= {thd->query_start(), uint(thd->query_start_sec_part())}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sql/table.cc:8561:42: note: insert an explicit cast to silence this issue timeval end_time= {thd->query_start(), uint(thd->query_start_sec_part())}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast<__darwin_suseconds_t>( )
* Enable C++11Sergey Vojtovich2018-09-094-5/+14
|
* EV-16992 Assertion `table_ref->table || table_ref->view' failed inIgor Babaev2018-09-063-6/+96
| | | | | | | | | | | | | Field_iterator_table_ref::set_field_iterator Several functions that processed different prepare statements missed the DT_INIT flag in last parameter of the open_normal_and_derived_tables() calls. It made context analysis of derived tables dependent on the order in which the derived tables were processed by mysql_handle_derived(). This order was induced by the order of SELECTs in all_select_list. In 10.4 the order of SELECTs in all_select_list became different and lack of the DT_INIT flags in some open_normal_and_derived_tables() call became critical as some derived tables were not identified as such.
* MDEV-16889: Spider Crash mysqld got exception 0xc0000005Jacob Mathew2018-08-295-0/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SELECT with the INNER JOIN is executed with one of the two tables being optimized as a constant table, which is pre-read. Spider nevertheless attempts to push down the join to the data node. The crash occurs because the constant table is excluded from the optimized query that Spider attempts to push down. In order for Spider to be able to push down a join, the following conditions need to be met: - All of the tables involved in the join need to be included in the optimized query that Spider pushes down. When any of the tables involved in the join is a constant table, it is excluded from the optimized query that Spider attempts to push down. - All fields involved in the query need to be members of tables included in the optimized query. I fixed the problem by preventing Spider from pushing down queries that include a field that is not a member of a table included in the optimized query. This solution fixes the reported problem and also fixes other potential problems. Author: Jacob Mathew. Reviewer: Kentoku Shiba. Cherry-Picked: Commit 4885baf on branch bb-10.3-MDEV-16889
* MDEV-16250: Spider system tables are MyISAM and needs repair after a crashJacob Mathew2018-08-284-9/+164
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During a server restart that follows a server crash, there may be error messages that indicate that certain system tables are marked as crashed and may be corrupted. Upon checking the system tables that are marked as crashed, it may be found that there is no corruption that needs repair. However, the error messages that are issued imply that the user needs to nevertheless manually repair the system tables that were marked as crashed. These issues have been moved to a separate bug MDEV-17068. MDEV-16250 addresses the work to make the Spider system tables crash safe. This work involves the following changes in 10.4: - Changes to the install_spider.sql script to change the storage engine for the Spider system tables to Aria. This is implemented in such a way as to allow the script to be run repeatedly without any harm or errors. - Changes to the init_spider.inc script that is run during initialization of every test in the Spider test suites. This script now uses the Aria storage engine for the Spider system tables in MariaDB Server 10.4 and later releases. - Added a test to the Spider test suite to display the storage engine of each Spider system table, to verify that the correct storage engine is used. Author: Jacob Mathew. Reviewer: Kentoku Shiba. Merged: Commit 73fac2a from branch bb-10.4-MDEV-16250
| * MDEV-16250: Spider system tables are MyISAM and needs repair after a crashbb-10.4-MDEV-16250Jacob Mathew2018-08-274-9/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During a server restart that follows a server crash, there may be error messages that indicate that certain system tables are marked as crashed and may be corrupted. Upon checking the system tables that are marked as crashed, it may be found that there is no corruption that needs repair. However, the error messages that are issued imply that the user needs to nevertheless manually repair the system tables that were marked as crashed. These issues have been moved to a separate bug MDEV-17068. MDEV-16250 addresses the work to make the Spider system tables crash safe. This work involves the following changes in 10.4: - Changes to the install_spider.sql script to change the storage engine for the Spider system tables to Aria. This is implemented in such a way as to allow the script to be run repeatedly without any harm or errors. - Changes to the init_spider.inc script that is run during initialization of every test in the Spider test suites. This script now uses the Aria storage engine for the Spider system tables in MariaDB Server 10.4 and later releases. - Added a test to the Spider test suite to display the storage engine of each Spider system table, to verify that the correct storage engine is used. Author: Jacob Mathew. Reviewer: Kentoku Shiba.
* | MDEV-17068 mysql system table is marked as crashed and should be repaired ↵Monty2018-08-2811-27/+106
| | | | | | | | | | | | | | | | | | | | | | after the server crashes or is killed - Changed ERROR to WARNING for MyISAM/Aria message that are warnings in the check utilities. This affects for example "client is using or hasn't closed the table properly". - Print "Table is fixed" if check succeded in fixing the table.
* | Updated company name in Aria plugin definitionMonty2018-08-281-1/+1
| |
* | Fixed ASAN failure for the test main.func_miscbb-10.4-16722Varun Gupta2018-08-244-25/+22
|/ | | | | | Moved the checks for arguments validation of Item_name_const from the constructor to Create_func_name_const::create_2_arg Also reverted the fix bf1c53e9be84437ada32393bb7b4a8ff06dbf369
* Fixed result for mysql_protocols.resultMonty2018-08-201-2/+3
|
* MDEV-16986 Unitialized mutex, SIGSEGV and assorted assertion failures in ↵Monty2018-08-203-0/+47
| | | | | | | | | | | | | | Aria code The problem was that when a mysql.proc table was opened for reading it was added to the current Aria transaction context but never properly deleted from it. Normally this isn't a problem, except if the mysql.proc table is closed before the transaction ended, which happened in this test case. Fixed by removing mysql.proc from the transaction context before closing the table.
* MDEV-16536 Remove shared memory transportVladislav Vaintroub2018-08-2034-3561/+66
|
* MDEV-17015 Assertion `m_year <= 9999' failed in Year::Year upon bad argument ↵Alexander Barkov2018-08-183-2/+12
| | | | to MAKEDATE
* Fixed ASAN failure for the test main.func_misc.Varun Gupta2018-08-182-2/+5
| | | | | | | | For Item name_const , we should never do typecast it to Item_field because we always expect it to be a constant value. So instead of checking the type() its better to introduce a function in the Item class get_item_field, which would return the item_field object for the item which have type of FIELD_ITEM
* MDEV-16986 Unitialized mutex, SIGSEGV and assorted assertion failures in ↵Monty2018-08-175-29/+66
| | | | | | | | | | | | | Aria code This was introduced by two pointers I added to TRN as part of MDEV-16421 Make system tables crash safe - Added code to ensure that trn_prev is not pointing to wrong object - A lot of new asserts and more code comments - Simplified code in _ma_trnman_end_trans_hook() - New back link allowed me to remove a loop
* MDEV-15851 Stop creating mysql.host tableVladislav Vaintroub2018-08-1654-492/+29
| | | | Changed bootstrap scripts, adjusted result files.
* Merge 10.3 into 10.4Marko Mäkelä2018-08-16335-2281/+7433
|\
| * After-merge fix: Restore DECLARE_THREAD to fix Windows buildMarko Mäkelä2018-08-161-1/+1
| |
| * Merge 10.2 into 10.3Marko Mäkelä2018-08-1643-469/+1438
| |\
| | * Report all redo log corruptionMarko Mäkelä2018-08-161-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Amend commit b853b4fd88b441f36eeb7eabdce79918ef10538a that was reverted in commit 29150e23912ef6e1fe386f53b778c9a5551c4790. recv_parse_log_recs(): Do check for corrupted redo log or file system before checking for len==0, but only read *ptr if it is not past the end of the buffer (end_ptr). recv_parse_log_rec(): Report incorrect redo log type in a consistent way with recv_parse_or_apply_log_rec_body(). This is a follow-up to commit f30c5af42e4e72a3a0d8d5fb7b9fc884a249f292.
| | * MDEV-16136 Various ASAN failures after MDEV-15030Marko Mäkelä2018-08-161-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Pool poisoning that was introduced in MDEV-15030 introduced race conditions in AddressSanitizer builds, because concurrent poisoning and unpoisoning were not prevented by any synchronization primitive. Pool::get(): Protect the unpoisoning by m_lock_strategy. Pool::mem_free(): Protect the poisoning by m_lock_strategy. Pool::putl(): Renamed from put(), because now the caller is responsible for invoking m_lock_strategy.
| | * MDEV-16136: Prevent wrong reuse in trx_reference()Marko Mäkelä2018-08-165-53/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If trx_free() and trx_create_low() were called while a call to trx_reference() was pending, we could get a reference to a wrong transaction object. trx_reference(): Return NULL if the trx->id no longer matches. lock_trx_release_locks(): Assign trx->id = 0, so that trx_reference() will not return a reference to this object. trx_cleanup_at_db_startup(): Assign trx->id = 0. assert_trx_is_free(): Assert !trx->n_ref. Assert trx->id == 0, now that it will be cleared as part of a transaction commit.
| | * Rename lock_pool_t to lock_listMarko Mäkelä2018-08-164-36/+16
| | | | | | | | | | | | | | | | | | Also, replace reverse iteration with forward iteration. lock_table_has(): Remove a redundant condition.
| | * MDEV-16136: Simplify trx_lock_t memory managementMarko Mäkelä2018-08-166-275/+216
| | | | | | | | | | | | | | | | | | | | | | | | Allocate trx->lock.rec_pool and trx->lock.table_pool directly from trx_t. Remove unnecessary use of std::vector. In order to do this, move some definitions from lock0priv.h to lock0types.h, so that ib_lock_t will not be an opaque type.
| | * MDEV-16859 MyRocks: support SSE42 CRC32-C instruction.Vladislav Vaintroub2018-08-151-2/+24
| | |
| | * bump the VERSIONDaniel Bartholomew2018-08-141-1/+1
| | |
| | * MDEV-16791 mariabackup : Support DDL commands during backupVladislav Vaintroub2018-08-1426-80/+1074
| | |
| | * adjust result fileVladislav Vaintroub2018-08-131-0/+2
| | |
| | * MDEV-15680 xb_aws_key_management fails in buildbot.Vladislav Vaintroub2018-08-131-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | aws_key_management needs current directory to be datadir during initalization, it scans current directory for encrypted keys. Fix is to ensure, that plugin initialization in mariabackup happens after the call to my_setwd(mysql_real_data_home).
| | * MDEV-16575: rocksdb.bulk_load_errors fails in buildbot with wrong resultSergei Petrunia2018-08-131-0/+7
| | | | | | | | | | | | Fix a race condition in the test.
| | * MDEV-16203: autoinc_debug of rocksdb test suite failsSergei Petrunia2018-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test causes simulated server crashes with DBUG_SUICIDE();. It also relies on transactions that were committed right before the crash to be visible after the crash (that is, it requires durability). Run the test with transaction durability enabled: set rocksdb-flush-log-at-trx-commit=1.
| | * Deb: Make libmariadb3 Breaks+Replaces libmariadbclient18 so upgrade passOtto Kekäläinen2018-08-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The package libmariadbclient18 contains the dialog.so plugin, which also the new libmariadb3 ships. As they both use the exact same path the latter must be marked as a with Breaks and Replaces relations ship. Note: This fix is conservative hack for stable releases 10.2 and 10.3. In 10.4, the development release at the time, we will clean up how the libmariadb3 packaging and it's -compat packages are done to match that what is done in downstream Debian official.
| | * Revert part of b853b4fd88b441f36eeb7eabdce79918ef10538aMarko Mäkelä2018-08-101-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | recv_parse_log_recs(): Do not check for corruption before checking for end-of-log-buffer. For some reason, adding the check to the logical-looking place would cause intermittent recovery failures in the tests innodb.innodb-index and innodb_gis.rtree_compress2.
| | * Report InnoDB redo log corruption betterMarko Mäkelä2018-08-103-13/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | recv_parse_log_recs(): Check for corruption before checking for end-of-log-buffer. mlog_parse_initial_log_record(), page_cur_parse_delete_rec(): Flag corruption for out-of-bounds values, and let the caller dump the corrupted redo log extract.
| | * recv_report_corrupt_log(): Avoid buffer overflowMarko Mäkelä2018-08-101-10/+10
| | | | | | | | | | | | | | | | | | If recv_sys_justify_left_parsing_buf() has been invoked, it is possible that recv_previous_parsed_rec_offset is after the current offset. In this case, we must not dump any bytes before the current record.
| | * log_group_read_log_seg(): Validate the lengthMarko Mäkelä2018-08-091-0/+9
| | | | | | | | | | | | | | | | | | If the LOG_BLOCK_HDR_DATA_LEN field is corrupted, scanning the log records could fail in strange ways. It is better to validate the field as part of validating each log block.
| * | bump the VERSIONDaniel Bartholomew2018-08-151-1/+1
| | |
| * | MDEV-15872 Crash in online ALTER TABLE...ADD PRIMARY KEY after instant ADD ↵Marko Mäkelä2018-08-143-2/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | COLUMN...NULL row_log_table_get_pk_col(): Replace a condition that was inadvertently removed in MDEV-16365. PRIMARY KEY columns are never allowed to be NULL, and failure to enforce the constraint caused a null pointer to be dereferenced in mem_heap_dup().
| * | MDEV-16398: Spider Creates Query With Non-Existent FunctionJacob Mathew2018-08-137-57/+213
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem occurs because the statement generated by Spider used an internal function name, ADD_TIME. This problem has been corrected by the fix for bug MDEV-16878 within the server, which enables Spider to generate the statement using the actual SQL function name. I have made some additional changes within Spider to fix related problems that I observed while testing. Author: Jacob Mathew. First Reviewer: Alexander Barkov. Second Reviewer: Kentoku Shiba. Merged: Commit 4b6dccc on branch bb-10.3-MDEV-16398
| | * | MDEV-16398: Spider Creates Query With Non-Existent Functionbb-10.3-MDEV-16398Jacob Mathew2018-08-097-57/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem occurs because the statement generated by Spider used an internal function name, ADD_TIME. This problem has been corrected by the fix for bug MDEV-16878 within the server, which enables Spider to generate the statement using the actual SQL function name. I have made some additional changes within Spider to fix related problems that I observed while testing. Author: Jacob Mathew. First Reviewer: Alexander Barkov. Second Reviewer: Kentoku Shiba.
| * | | fix third-party tool packaging on WinSergei Golubchik2018-08-132-2/+3
| | | |
| * | | fix bundled pcre unit testsSergei Golubchik2018-08-131-2/+2
| | | |
| * | | fix C/C packaging on debianSergei Golubchik2018-08-121-0/+0
| | | |
| * | | Merge branch '10.2' into 10.3Sergei Golubchik2018-08-1223-165/+210
| |\ \ \
| | * | | Updated list of unstable tests for 10.2.17Elena Stepanova2018-08-121-239/+406
| | | |/ | | |/|
| | * | InnoDB: Correct an error messageMarko Mäkelä2018-08-091-1/+2
| | | | | | | | | | | | | | | | Display the log record type in hexadecimal, not binary.
| | * | SLES11 OpenSSL 0.9.8 supportSergei Golubchik2018-08-092-1/+1
| | | |
| | * | compiler warningSergei Golubchik2018-08-091-1/+1
| | | | | | | | | | | | | | | | warning: suggest a space before ‘;’ or explicit braces around empty body in ‘for’ statement