summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/10.2' into bb-10.2-extAlexander Barkov2017-10-02288-2427/+1987
|\
| * Remove MYSQL_REPLACE_TRX_IN_THDMarko Mäkelä2017-10-022-48/+0
| | | | | | | | | | | | The method handlerton::replace_native_transaction_in_thd was added into MySQL 5.7 in WL#6860, Binlogging XA-prepared transaction. In MariaDB we do not have that change yet.
| * Remove dict_table_t::big_rowsMarko Mäkelä2017-10-024-42/+2
| | | | | | | | | | | | | | The field dict_table_t::big_rows was only used for determining if the adaptive hash index should be used when the internal InnoDB SQL parser is used. That parser is only used for modifying the InnoDB data dictionary, updating persistent tables, and for fulltext indexes.
| * Remove a constant parameter commit=falseMarko Mäkelä2017-10-028-27/+10
| |
| * Merge 10.1 into 10.2Marko Mäkelä2017-10-0228-140/+128
| |\
| | * Merge 10.0 into 10.1Marko Mäkelä2017-10-022-16/+12
| | |\
| | | * Merge 5.5 into 10.0Marko Mäkelä2017-10-022-16/+12
| | | |\
| | | | * MDEV-13980 InnoDB fails to discard record lock when discarding an index pageMarko Mäkelä2017-10-022-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | btr_cur_pessimistic_delete(): Discard a possible record lock also in the case when the record was the only one in the page. Failure to do this would corrupt the record lock data structures in a partial rollback (ROLLBACK TO SAVEPOINT or rolling back a row operation due to some error, such as a duplicate key in a unique secondary index).
| | | | * MDEV-13137 MySQL 5.6.23 Crashes when SET GLOBAL server_audit_logging=OFF;Alexey Botchkov2017-09-191-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MySQL 5.6 doesn't always send the MYSQL_AUDIT_GENERAL_LOG notification. So we have to suppress the log_current_query() in this case.
| | * | | MDEV-13932: fil0pagecompress.cc fails to compile with lzo 2.10Jan Lindström2017-09-292-4/+20
| | | | | | | | | | | | | | | | | | | | Patch contibuted by Gordon Fisher. Thank you for your contribution!
| | * | | MDEV-12634: Uninitialised ROW_MERGE_RESERVE_SIZE bytes written to temporary fileJan Lindström2017-09-286-66/+34
| | | | | | | | | | | | | | | | | | | | After review cleanup.
| | * | | bump the VERSIONDaniel Bartholomew2017-09-271-1/+1
| | | | |
| | * | | MDEV-13897 SELECT @a := MAX(col) FROM t requires full index scanmariadb-10.1.28Sergei Golubchik2017-09-275-19/+19
| | | | | | | | | | | | | | | | | | | | fix some old bad merge
| | * | | update test results on 32-bitSergei Golubchik2017-09-271-1/+1
| | | | |
| | * | | cleanup: remove useless "inline" keywordsSergei Golubchik2017-09-275-26/+3
| | | | | | | | | | | | | | | | | | | | | | | | | avoid a function call for a commonly used one-liner. followup for 0627929f626
| | * | | cleanup: reduce code duplicationSergei Golubchik2017-09-271-34/+23
| | | | | | | | | | | | | | | | | | | | | | | | | remove copy-pasted code, fix meaningless comparison. followup for ea2162b6aae
| | * | | MDEV-13787 Crash in persistent stats wsrep_on (thd=0x0)Sachin Setiya2017-09-2714-19/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem:- This crash happens because of thd = NULL , and while checking for wsrep_on , we no longer check for thd != NULL (MDEV-7955). So this problem is regression of MDEV-7955. However this patch not only solves this regression , It solves all regression caused by MDEV-7955 patch. To get all possible cases when thd can be null , assert(thd)/ assert(trx->mysql_thd) is place just before all wsrep_on and innodb test suite is run. And the assert which caused failure are removed with a physical check for thd != NULL. Rest assert are removed. Hopefully this method will remove all current/potential regression of MDEV-7955.
| | * | | bump the VERSIONDaniel Bartholomew2017-09-251-1/+1
| | | | |
| * | | | Remove remaining InnoDB references to the TABLESPACE keywordMarko Mäkelä2017-10-022-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MySQL 5.7 allows the creation of InnoDB tables in a user-created tablespace, but MariaDB does not. Remove the remaining references. This is a non-functional change.
| * | | | Fix some conversion warnings.Vladislav Vaintroub2017-09-305-12/+12
| | | | |
| * | | | Fix "ib::fatal::~fatal': destructor never returns, potential memory leak"Vladislav Vaintroub2017-09-291-0/+13
| | | | | | | | | | | | | | | | | | | | warning
| * | | | Correct definition of ATTRIBUTE_NORETURN on Windows.Vladislav Vaintroub2017-09-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Only microsoft compiler, which can be correctly tested with #ifdef _MSC_VER) has __declspec(noreturn)
| * | | | MDEV-13941 Fix high NTFS fragmentation on 10.2Vladislav Vaintroub2017-09-293-61/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this patch, creating or even opening any innodb file in 10.2 would set a sparse flag on file. The file extension was done by setting end of file, without writing zeros. This technique is fine, however due to sparsedness, it created a hole at the end of the file, which lead to much higher fragmentation subsequently. The fix is only to use sparse flag for compressed tables, where holes are actually wanted, but not for normal tables.
| * | | | In table cache code, fix casts from longlong to long forVladislav Vaintroub2017-09-295-20/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'version' variables. The warnings occur on Windows build, yet they are also are valid on 32bit Unix. Fix is to consistently use 64bit integer on all platforms.
| * | | | Fix DBUG_PRINT formatting in query cache.Vladislav Vaintroub2017-09-291-2/+2
| | | | | | | | | | | | | | | | | | | | some ulonglong variables were printed as %lu
| * | | | Remove unused parameters and dead codeMarko Mäkelä2017-09-298-29/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | upd_field_set_field_no(): Remove the unused parameter trx, and remove a debug message. In debug builds, the out-of-bounds access would still be caught by dict_index_get_nth_col(). trx_undo_update_rec_get_update(): Remove the unnecessary parameter trx.
| * | | | Remove remaining references to InnoDB native partitioningMarko Mäkelä2017-09-293-422/+0
| | | | | | | | | | | | | | | | | | | | | | | | | The InnoDB native partitioning (ha_innopart) is a MySQL 5.7 code refactoring exercise that was not merged to MariaDB.
| * | | | fix some conversion warningsVladislav Vaintroub2017-09-289-18/+18
| | | | |
| * | | | MDEV-13384 - misc Windows warnings fixedVladislav Vaintroub2017-09-28147-491/+545
| | | | |
| * | | | MDEV-13384 Fix Windows warnings. thd_alloc functions now use size_t parametersVladislav Vaintroub2017-09-289-89/+89
| | | | | | | | | | | | | | | | | | | | Fixes some warnings in popular headers.
| * | | | MDEV-13844 : Fix Windows warnings. Fix DBUG_PRINT.Vladislav Vaintroub2017-09-28125-1040/+1053
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix win64 pointer truncation warnings (usually coming from misusing 0x%lx and long cast in DBUG) - Also fix printf-format warnings Make the above mentioned warnings fatal. - fix pthread_join on Windows to set return value.
* | | | | MDEV-13967 Parameter data type control for Item_long_funcAlexander Barkov2017-10-0118-39/+660
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Implementing stricter data type control for Item_long_func descendants - Cleanup: renaming Type_handler::can_return_str_ascii() to can_return_text() (a better name).
* | | | | MDEV-13966 Parameter data type control for Item_temporal_funcAlexander Barkov2017-09-3010-0/+210
| | | | |
* | | | | MDEV-13965 Parameter data type control for Item_longlong_funcAlexander Barkov2017-09-2913-0/+266
| | | | |
* | | | | MDEV-13964 Parameter data type control for Item_real_funcAlexander Barkov2017-09-293-0/+198
| | | | |
* | | | | Merge remote-tracking branch 'origin/10.2' into bb-10.2-extAlexander Barkov2017-09-2817-118/+118
|\ \ \ \ \ | |/ / / /
| * | | | Avoid implicit conversion from unsigned to signedMarko Mäkelä2017-09-281-1/+1
| | | | |
| * | | | Added missing test if table is transactional or not in AriaMonty2017-09-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The line was accidently removed by dd8474b1dc556d0ea9491d1908a2d1237818e8c1 - The effect of the missing test was just a few extra malloc when creating internal temporary tables. Nothing critical, but better got get fixed.
| * | | | bump the VERSIONDaniel Bartholomew2017-09-271-1/+1
| | | | |
| * | | | Fixed compiler warningMonty2017-09-271-5/+5
| | | | |
| * | | | Correct test output after variable comment changeMonty2017-09-273-3/+3
| | | | |
| * | | | Fix buildbot error on windows.Vladislav Vaintroub2017-09-272-55/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update.rdiff fle Also, introduce my_popen()/my_fgets() wrapper function for popen()/fgets() in mysqltest to workaround a popen() bug in Windows C runtime, mentioned in MDEV-9409 This workaround was used previously for "exec". From now on, it is also used are used also for "perl" snippets.
| * | | | fix a data raceEugene Kosov2017-09-271-41/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reapply 6192f0bffa798c01acc85db9f427ed02234aead4 TSAN warnings count decreased from 206 to 195
| * | | | Moved autosetting of host_cache_size and back_log to proper placebb-10-3-markoMonty2017-09-267-24/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Clean up formulas and comments for host_cache_size and back_log - Added test of autoset (for host_cache_size) - Marked open_files_limit as auto_set
* | | | | A cleanup for MDEV-13919 sql_mode=ORACLE: Derive length of VARCHAR SP param...Alexander Barkov2017-09-285-28/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The intent of this patch is to avoid copying arguments from a pair "Item **args, uint arg_count" to List<Item> in sp_head::execute_function(). If the number of a stored function parameters is huge, such copying can affect performance. Change: 1. Adding a new method Row_definition_list::adjust_formal_params_to_actual_params, which accepts a pair of "Item **, uint". 2. Modifying the code to use the new method: - the calls for sp_rcontext::retrieve_field_definitions() and Row_definition_list::adjust_formal_params_to_actual_params() have been moved from sp_rcontext::create() to sp_head::rcontext_create(), to handle different argument notations easier (Item** vs List<Item>). - sp_rcontext::create() now assumes that the passed Row_definition_list is already adjusted to the actual SP parameters, and all "TYPE OF" and "ROWTYPE OF" references are resolved. 3. Removing creation of List<Item> in sp_head::execute_procedure(), using the code with "Item**, uint" notation instead. 4. Improvement of the code for MDEV-10577: As a good side effect, this patch gets rid of double security context switch inside sp_head::execute_trigger(): sp_rcontext is created when the context is already switched, so the second context switch inside sp_head::rcontext_create() was redundant. This is solved by adding a "bool switch_secutiry_ctx" parameter to rcontext_create(), so now execute_function() and execute_procedure() pass "true", while execute_trigger() passes "false".
* | | | | A cleanup for MDEV-10577 and MDEV-13919: moving a few sp_rcontext methodsAlexander Barkov2017-09-284-32/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving a few methods from sp_rcontext to different classes: - Table_ident::resolve_table_rowtype_ref - Qualified_column_ident::resolve_type_ref - Row_definition_list::resolve_table_rowtype_ref - Row_definition_list::adjust_formal_params_to_actual_params It easier to reuse these methods this way in the future.
* | | | | Fixing a warning introduced by MDEV-13919 ("true" instread of "return true")Alexander Barkov2017-09-281-1/+1
| | | | |
* | | | | Additional tests for MDEV-13919 sql_mode=ORACLE: Derive length of VARCHAR...Alexander Barkov2017-09-284-2/+413
| | | | |
* | | | | MDEV-13919 sql_mode=ORACLE: Derive length of VARCHAR SP parameters with no ↵halfspawn2017-09-279-21/+251
| | | | | | | | | | | | | | | | | | | | length from actual parameters
* | | | | MDEV-13907 compoind.test fails in build-bot for bb-10.2-extAlexander Barkov2017-09-268-90/+121
| | | | |