summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* remove unneded #include's that had a dubious explanationSergei Golubchik2015-10-2430-28/+15
|
* MDEV-8693 Tests connect.bin connect.endian fail on armhf (on Debian build ↵Alexander Barkov2015-10-242-6/+26
| | | | system)
* Fixed MDEV-8408Monty2015-10-236-23/+59
| | | | | | Assertion `inited==INDEX' failed in int handler::ha_index_first(uchar*) The crash was because errors from init_read_record_idx() was not taken care of.
* MDEV-8883 more cross-compiling fixesSergei Golubchik2015-10-221-6/+6
| | | | | don't abort with "XtraDB not supported" if XtraDB was disabled in this build.
* MDEV-8868 Consider adding a check for libjemalloc version in cmake and/or at ↵Sergei Golubchik2015-10-221-3/+17
| | | | | | runtime add a run-time check for jemalloc >= 2.3
* MDEV-8614 Assertion `status == 0' failed in add_role_user_mapping_action on ↵Sergei Golubchik2015-10-223-2/+21
| | | | | | RENAME USER don't forget to re-examine the current element when updating a HASH
* MDEV-8609 Server crashes in is_invalid_role_name on reloading ACL with a ↵Sergei Golubchik2015-10-223-2/+16
| | | | | | | | blank role name strip endspaces from the role name in the parser because they'll be lost anyway when the name is stored in the mysql.user.user column (of type CHAR)
* add comment to a testSergei Golubchik2015-10-221-0/+3
|
* MDEV-7656 init_file option does not allow changing passwordsSergei Golubchik2015-10-223-1/+36
| | | | allow SET PASSWORD from bootstrap and init-file
* fix the dbug tag nameSergei Golubchik2015-10-221-1/+1
|
* fix build on sol10-64Sergei Golubchik2015-10-221-1/+1
|
* Allow mysql_upgrade to enable event after table is correctedMichael Widenius2015-10-2113-109/+188
| | | | | | | | new features: set event_scheduler=ON|OFF will now try to init event scheduler if it's not enabled set event_scheduler=default will try to enable it based on the value of the event_scheduler when mysqld was started
* Set opt_noacl (running with--skip-grant-tables) to 0 if weMichael Widenius2015-10-211-0/+1
| | | | reload grant tables.
* Merge branch '5.5' into 10.0Sergei Golubchik2015-10-212-2/+4
|\
| * fix events_1 test for October 2015Sergei Golubchik2015-10-212-2/+4
| | | | | | | | cherry-picked 7454f1c5 from 10.1
| * MDEV-7640: CHANGE MASTER TO doesn't work with prepared statementsNirbhay Choubey2015-10-115-1/+98
| | | | | | | | | | | | | | When CHANGE MASTER was executed as a PS, its attributes were wrongly getting reset toward the end of PREPARE. As a result, the subsequent executions had no effect. Fixed by making sure that the CHANGE MASTER attributes are preserved during the lifetime of the PS.
* | MDEV-8565: COLUMN_CHECK fails on valid dataOleksandr Byelkin2015-10-193-2/+31
| | | | | | | | Check allows zero lengts int/uint now.
* | MDEV-7640: CHANGE MASTER TO doesn't work with prepared statementsNirbhay Choubey2015-10-115-1/+98
| | | | | | | | | | | | | | When CHANGE MASTER was executed as a PS, its attributes were wrongly getting reset toward the end of PREPARE. As a result, the subsequent executions had no effect. Fixed by making sure that the CHANGE MASTER attributes are preserved during the lifetime of the PS.
* | fixes for buildbot:Sergei Golubchik2015-10-102-2/+69
| | | | | | | | | | * update *.result files * fix XtraDB for Windows (again)
* | Merge branch 'merge-perfschema-5.6' into 10.0Sergei Golubchik2015-10-095-3/+75
|\ \
| * | 5.6.27Sergei Golubchik2015-10-096-4/+78
| | |
* | | Merge branch 'merge-xtradb-5.6' into 10.0Sergei Golubchik2015-10-0922-299/+418
|\ \ \
| * | | 5.6.26-74.0Sergei Golubchik2015-10-0923-307/+416
| | | |
* | | | update innodb versionSergei Golubchik2015-10-091-1/+1
| | | |
* | | | Merge branch 'merge-innodb-5.6' into 10.0Sergei Golubchik2015-10-0918-105/+394
|\ \ \ \
| * | | | 5.6.27Sergei Golubchik2015-10-0918-118/+393
| | | | |
* | | | | Merge branch '5.5' into 10.0Sergei Golubchik2015-10-0992-395/+1929
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | fixes for buildbot:mariadb-5.5.46Sergei Golubchik2015-10-095-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * OSX (mysqlimport freeing unallocated memory) * Windows (didn't compile MSI) * fulltest2 (innodb crashes in --embedded --big)
| * | | | Merge branch 'merge-xtradb-5.5' into 5.5Sergei Golubchik2015-10-097-26/+109
| |\ \ \ \
| | * | | | 5.5.45-37.4Sergei Golubchik2015-10-087-27/+116
| | | | | |
| * | | | | Merge remote-tracking branch 'mysql/5.5' into 5.5Sergei Golubchik2015-10-0873-256/+893
| |\ \ \ \ \
| | * | | | | Updated yassl to yassl-2.3.8mysql-5.5.46Robert Golebiowski2015-09-186-3/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit 7f9941eab55ed672bfcccd382dafbdbcfdc75aaa)
| | * | | | | Bug #21025377 CAN'T CONNECT TO SSL ENABLED SERVER FIRST 30 SEC AFTERRobert Golebiowski2015-09-183-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | INITIAL STARTUP Updated yassl to yassl-2.3.7e (cherry picked from commit 6e21c8c04b922bdb60b6a7c174709d2e1bdd3618)
| | * | | | | Bug#21527467 - RPM SCRIPTS FAIL WITH MULTIPLE DATADIRBalasubramanian Kandasamy2015-08-261-7/+7
| | | | | | |
| | * | | | | BUG#20449914: HANDLE_FATAL_SIGNAL (SIG=11) INNisha Gopalakrishnan2015-08-253-5/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FIELD_ITERATOR_TABLE::END_OF_FIELDS Note: This a backport of the patch for bug#19894987 to MySQL-5.5
| | * | | | | Bug#20198490 : LOWER_CASE_TABLE_NAMES=0 ON WINDOWS LEADS TOArun Kuruvila2015-08-2116-61/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PROBLEMS Description:- Server variable "--lower_case_tables_names" when set to "0" on windows platform which does not support case sensitive file operations leads to problems. A warning message is printed in the error log while starting the server with "--lower_case_tables_names=0". Also according to the documentation, seting "lower_case_tables_names" to "0" on a case-insensitive filesystem might lead to index corruption. Analysis:- The problem reported in the bug is:- Creating an INNODB table 'a' and executing a query, "INSERT INTO a SELECT a FROM A;" on a server started with "--lower_case_tables_names=0" and running on a case-insensitive filesystem leads innodb to flat spin. Optimizer thinks that "a" and "A" are two different tables as the variable "lower_case_table_names" is set to "0". As a result, optimizer comes up with a plan which does not need a temporary table. If the same table is used in select and insert, a temporary table is needed. This incorrect optimizer plan leads to infinite insertions. Fix:- If the server is started with "--lower_case_tables_names" set to 0 on a case-insensitive filesystem, an error, "The server option 'lower_case_table_names'is configured to use case sensitive table names but the data directory is on a case-insensitive file system which is an unsupported combination. Please consider either using a case sensitive file system for your data directory or switching to a case-insensitive table name mode.", is printed in the server error log and the server exits.
| | * | | | | Small change to default config for Docker-specific rpm packageLars Tangvald2015-08-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Syncs "official" and our own Docker images
| | * | | | | Bug #16171518 - LOAD XML DOES NOT HANDLE EMPTY ELEMENTSShishir Jaiswal2015-08-185-2/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DESCRIPTION =========== Inability of mysql LOAD XML command to handle empty XML tags i.e. <row><tag/></row>. Also the behaviour is wrong and (different than above) when there is a space in empty tag i.e. <row><tag /></row> ANALYSIS ======== In read_xml() the case where we encounter a close tag ('/') we're decreasing the 'level' blindly which is wrong. Actually when its an without-space-empty-tag (succeeding char is '>'), we need to skip the decrement. In other words whenever we hit a close tag ('/'), decrease the 'level' only when (i) It's not an (without space) empty tag i.e. <tag/> or, (ii) It is of format <row col="val" .../> FIX === The switch case for '/' is modified. We've removed the blind decrement of 'level'. We do it only when its not an without-space-empty-tag. Also we are setting 'in_tag' to false to let program know that we're done reading current tag (required in the case of format <row col="val" .../>)
| | * | | | | BUG#11754258: INCORRECT ERROR MESSAGE WHEN CREATING UNSAFEKarthik Kamath2015-08-181-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VIEW It appears that the code refactoring done as part of the patch for the MySQL BUG#11749859 fixed this issue. This issue is not reproducible on MySQL 5.5+ versions now. As part of this patch, the test file "mysqldump.test" has been updated to remove the comment which was referring to the bug and also the line which suppresses the warning.
| | * | | | | Merge branch 'mysql-5.1' into mysql-5.5Mithun C Y2015-08-173-2/+14
| | |\ \ \ \ \
| | | * | | | | Bug #21350175: SUBQUERIES IN PROCEDURE CLAUSE OF SELECT STATEMENT CAUSES ↵Mithun C Y2015-08-173-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SERVER FAILURES. Analysis : ========== During JOIN::prepare of sub-query which creates the derived tables we call setup_procedure. Here we call fix_fields for parameters of procedure clause. Calling setup_procedure at this point may cause issue. If sub-query is one of parameter being fixed it might lead to complicated dependencies on derived tables being prepared. SOLUTION : ========== In 5.6 with WL#6242, we have made procedure clause parameters can only be NUM, so sub-queries are not allowed as parameters. So in 5.5 we can block sub-queries in procedure clause parameters. This eliminates above conflicting dependencies.
| | * | | | | | Bug #21025880 DUPLICATE UK VALUES IN READ-COMMITTED (AGAIN)Aditya A2015-08-121-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PROBLEM Whenever we insert in unique secondary index we take shared locks on all possible duplicate record present in the table. But while during a replace on the unique secondary index , we take exclusive and locks on the all duplicate record. When the records are deleted, they are first delete marked and later purged by the purge thread. While purging the record we call the lock_update_delete() which in turn calls lock_rec_inherit_to_gap() to inherit locks of the deleted records. In repeatable read mode we inherit all the locks from the record to the next record but in the read commited mode we skip inherting them as gap type locks. We make a exception here if the lock on the records is in shared mode ,we assume that it is set during insert for unique secondary index and needs to be inherited to stop constraint violation. We didnt handle the case when exclusive locks are set during replace, we skip inheriting locks of these records and hence causing constraint violation. FIX While inheriting the locks,check whether the transaction is allowed to do TRX_DUP_REPLACE/TRX_DUP_IGNORE, if true inherit the locks. [ Revewied by Jimmy #rb9709]
| | * | | | | | BUG#21102971 data corruption on arm64Shaohua Wang2015-08-104-33/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The root cause is that x86 has a stronger memory model than the ARM processors. And the GCC builtins didn't issue the correct fences when setting/unsetting the lock word. In particular during the mutex release. The solution is rewriting atomic TAS operations: replace '__sync_' by '__atomic_' if possible. Reviewed-by: Sunny Bains <sunny.bains@oracle.com> Reviewed-by: Bin Su <bin.x.su@oracle.com> Reviewed-by: Debarun Banerjee <debarun.banerjee@oracle.com> Reviewed-by: Krunal Bauskar <krunal.bauskar@oracle.com> RB: 9782 RB: 9665 RB: 9783
| | * | | | | | Merge branch 'mysql-5.1' into mysql-5.5Ajo Robert2015-08-072-15/+42
| | |\ \ \ \ \ \ | | | |/ / / / /
| | | * | | | | Bug #20760261 mysqld crashed in materialized_cursor::Ajo Robert2015-08-072-15/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | send_result_set_metadata Analysis -------- Cursor inside trigger accessing NEW/OLD row leads server exit. The reason for the bug was that implementation of function create_tmp_table() was not considering Item::TRIGGER_FIELD_ITEM as possible alternative for type of class being instantiated. This was resulting in a mismatch between a number of columns in result list and temp table definition. This mismatch leads to the failure of assertion DBUG_ASSERT(send_result_set_metadata.elements == item_list.elements) in the method Materialized_cursor::send_result_set_metadata in debug mode. Fix: --- Added code to consider Item::TRIGGER_FIELD_ITEM as valid type while creating fields.
| | * | | | | | Follow-up fix : Bug #18145121 - DEPRECATED PERL SYNTAX IN MTRsayantan dutta2015-08-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit 1bfe5f724bc4c24da635f632247e7d263aa53970) Conflicts: mysql-test/lib/mtr_cases.pm
| | * | | | | | Follow up Fix: Bug #18145121 - DEPRECATED PERL SYNTAX IN MTRsayantan dutta2015-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit 3eb933e0eb55f962404a04741767177e12a9885f) Conflicts: mysql-test/mysql-test-run.pl
| | * | | | | | Merge branch 'mysql-5.1' into mysql-5.5Mithun C Y2015-08-041-0/+5
| | |\ \ \ \ \ \ | | | |/ / / / /
| | | * | | | | Bug #21096444: MYSQL IS TRYING TO PERFORM A CONSISTENT READ BUT THE READ ↵Mithun C Y2015-08-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VIEW IS NOT ASSIGNED! Issue: A select for update subquery in having clause resulted deadlock and its transaction was rolled back by innodb. val_XXX interfaces do not handle errors and it do not propogate errors to its caller. sub_select did not see this error when it called evaluate_join_record and later made a call to innodb. As transaction is rolled back innodb asserted. Fix: Now evaluate_join_record checks if there is any error reported and then return the same to its caller.
| | * | | | | | Merge branch 'mysql-5.1' into mysql-5.5Sreeharsha Ramanavarapu2015-08-030-0/+0
| | |\ \ \ \ \ \ | | | |/ / / / /