summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-7922 - ERROR 1939 (HY000): Engine PERFORMANCE_SCHEMA failed to discoverbb-mdev7922Sergey Vojtovich2015-04-083-0/+30
| | | | | | | | | | | | table Performance schema discovery fails if connection has no active database set. This happened due to restriction in SQL parser: table name with no database name is ambiguous in such case. Fixed by temporary substitution of default database with being discovered table database.
* MDEV-7916: main.analyze_format_json fails in buildbot on labradorSergei Petrunia2015-04-062-6/+6
| | | | Make the test work on case insensitive FS
* MDEV-7917 main.log_tables fails sporadically in buildbot #2Elena Stepanova2015-04-062-2/+4
| | | | | mysql.slow_log table has an extra column in 10.1, so the test table copy should too -- added the column.
* Merge branch '10.1' of github.com:MariaDB/server into 10.1Sergei Petrunia2015-04-062-14/+0
|\
| * MDEV-7918: A number of tests fail in valgrind builder with "InnoDB: Error: ↵Jan Lindström2015-04-062-14/+0
| | | | | | | | | | | | | | Requested state 6 current state 4 old_state 4" Problem with this state transfer is that different state transfers are protected with different mutexes.
* | MDEV-7919: main.explain_json* fail in buildbot with valgrindSergei Petrunia2015-04-061-3/+3
|/ | | | | Correctly initialize Explain_node::connection_type, remove unused Explain_node constructor.
* MDEV-7904: ANALYZE FORMAT=JSON doesn't print r_rows for union outputSergei Petrunia2015-04-043-0/+91
| | | | Print r_rows. There is no table tracking for reading from tmp table, yet.
* MDEV-7833:ANALYZE FORMAT=JSON and Range checked for each recordOleksandr Byelkin2015-04-036-13/+234
|
* MDEV-7284 INDEX: CREATE OR REPLACEAlexander Barkov2015-04-039-16/+178
|
* Adjust test timeout to let long semaphore wait signaling to happen.Jan Lindström2015-04-033-6/+6
|\
| * Adjust test wait timeout.Jan Lindström2015-03-313-6/+6
| |
| * Merge branch '10.1' into bb-10.1-janJan Lindström2015-03-1952-430/+3082
| |\
| | * MDEV-7797: file_key_management_plugin uses static IV for a keyJan Lindström2015-03-192-300/+300
| | | | | | | | | | | | | | | | | | | | | Currently crypt data is written to file space always. Use that to obtain random IV for every object (file). Beatify code to confort InnoDB coding styles.
| * | Merge branch '10.1' into bb-10.1-janJan Lindström2015-03-17153-2364/+3558
| |\ \
| | * | Replace static usage of AES_CTR with current encryption algorithm.Jan Lindström2015-03-171-1/+9
| | | |
| * | | Introduce only one combinations file and and rule for aes_ctr toJan Lindström2015-03-1611-16/+8
| | | | | | | | | | | | | | | | suite.pm so that it is not used if not available.
| * | | MDEV-7772: SIGSEGV on my_aes_encrypt_cbc when -DWITH_SSL=bundledJan Lindström2015-03-1317-28/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two problems: - Read/Write outside of buffer at memcpy() because of incorrect parameters . OPENSSL_assert(EVP_CIPHER_CTX_iv_length(&ctx.ctx) == iv_length); // ECB does not use IV, thus incorrect assertion Added: mysql-test/include/have_file_key_management_plugin.combinations ( to run with aes_cbc and aes_ecb) mysql-test/include/have_openssl_ctr.combinations ( to run with aes_cbc, aes_ecb and aes_ctr)
* | | | MDEV-7867: Add binlog header to GRA_.log fileNirbhay Choubey2015-04-016-10/+84
| | | |
* | | | MDEV-7878: innodb_scrub_background fails sporadically in buildbot (Failing ↵Jan Lindström2015-03-312-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assertion: offset > 0 && offset < UNIV_PAGE_SIZE) Problem was that when encrypted space was flushed page 0 is also updated but crypt data offset was sometimes not calculated.
* | | | Merge MDEV-7847 and MDEV-7882 into 10.0.Kristian Nielsen2015-03-305-21/+518
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mysql-test/suite/rpl/r/rpl_parallel.result sql/rpl_parallel.cc
| * | | | MDEV-7847: "Slave worker thread retried transaction 10 time(s) in vain, ↵Kristian Nielsen2015-03-305-12/+515
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | giving up", followed by replication hanging This patch fixes a bug in the error handling in parallel replication, when one worker thread gets a failure and other worker threads processing later transactions have to rollback and abort. The problem was with the lifetime of group_commit_orderer objects (GCOs). A GCO is freed when we register that its last event group has committed. This relies on register_wait_for_prior_commit() and wait_for_prior_commit() to ensure that the fact that T2 has committed implies that any earlier T1 has also committed, and can thus no longer execute mark_start_commit(). However, in the error case, the code was skipping the register_wait_for_prior_commit() and wait_for_prior_commit() calls. Thus commit ordering was not guaranteed, and a GCO could be freed too early. Then a later mark_start_commit() would reference deallocated GCO, which could lead to lost wakeup (causing slave threads to hang) or other corruption. This patch makes also the error case respect commit order. This way, also the error case gets the GCO lifetime correct, and the hang no longer occurs.
| * | | | MDEV-7882: Excessive transaction retry in parallel replicationKristian Nielsen2015-03-301-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a transaction in parallel replication needs to retry (eg. because of deadlock kill), first wait for all prior transactions to commit before doing the retry. This way, we avoid the retry once again conflicting with a prior transaction, requiring yet another retry. Without this patch, we saw "in the wild" that transactions had to be retried more than 10 times to succeed, which exceeds the default --slave_transaction_retries value and is in any case undesirable. (We already do this in 10.1 in "optimistic" parallel replication mode; this patch just makes the code use the same logic for "conservative" mode (only mode in 10.0)).
* | | | | Removing Item_string::m_cs_specified andAlexander Barkov2015-03-301-28/+6
| | | | | | | | | | | | | | | | | | | | making Item_string::is_cs_specified() virtual instead.
* | | | | Increased the version numberElena Stepanova2015-03-301-1/+1
| | | | |
* | | | | MDEV-7874 deb package installation fails with "dpkg: dependency problems ↵Elena Stepanova2015-03-302-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prevent configuration of mariadb-server" Added usr/share/mysql/maria_add_gis_sp_bootstrap.sql to the file lists
* | | | | MDEV-7812: ANALYZE FORMAT=JSON UPDATE/DELETE doesnt print the r_total_time_msOleksandr Byelkin2015-03-296-3/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tracking total time added in UPDATE/DELETE Fixed selectivity calculation in UPDATE/DELETE Macro definitions of time tracting fixed.
* | | | | Better commentsSergei Petrunia2015-03-272-5/+47
| | | | |
* | | | | Skip necessary encryption tests if required plugin is not found.Jan Lindström2015-03-271-0/+6
| | | | |
* | | | | Preparatory refactoring for:Alexander Barkov2015-03-263-90/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MDEV-6218 Wrong result of CHAR_LENGTH(non-BMP-character) with 3-byte utf8 - Moving get_text() as a method to Lex_input_stream. - Moving the unescaping part into a separate function, this piece of code will later go to /strings most likely. - Removing Lex_input_string::yytoklen, as it's not needed any more.
* | | | | MDEV-7834: ANALYZE FORMAT=JSON output column should be named ANALYZEOleksandr Byelkin2015-03-253-11/+14
| | | | |
* | | | | Trivial test results updatesSergei Petrunia2015-03-251-0/+14
| | | | |
* | | | | Merge branch 'bb-10.1-explain-analyze' into 10.1Sergei Petrunia2015-03-2513-21/+231
|\ \ \ \ \
| * | | | | Fix valgrind failure: correclty clean up handler::trackerSergei Petrunia2015-03-251-0/+1
| | | | | |
| * | | | | Fix linking: move the inline functionsSergei Petrunia2015-03-244-38/+37
| | | | | |
| * | | | | Merge branch 'bb-10.1-explain-analyze' into 10.1Sergei Petrunia2015-03-2413-39/+249
| |\ \ \ \ \
| | * | | | | MDEV-7648: Extra data in ANALYZE FORMAT=JSON $stmtSergei Petrunia2015-03-2412-157/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch from relying on PERFORMANCE_SCHEMA to using our own hooks for counting the time spent reading rows from tables.
| | * | | | | Better commentsSergei Petrunia2015-03-241-4/+39
| | | | | | |
| | * | | | | MDEV-7648: Extra data in ANALYZE FORMAT=JSON $stmtSergei Petrunia2015-03-0712-3/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Show total execution time (r_total_time_ms) for various parts of the query: 1. time spent in SELECTs 2. time spent reading rows from storage engines #2 currently gets the data from P_S.
* | | | | | | Merge pull request #33 from k0da/mdev-7839Sergei Petrunia2015-03-251-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix BigEndian build for Cassandra SE
| * | | | | | | Fix BigEndian buildDinar Valeev2015-03-251-1/+1
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On BigEndian build fails with: [ 109s] /home/abuild/rpmbuild/BUILD/mariadb-10.0.17/storage/cassandra/ha_cassandra.cc:890:22: error: invalid conversion from 'longlong* {aka long long int*} ' to 'long long int' [-fpermissive] [ 109s] value->x.long_value= (longlong *)*cass_data; [ 109s] ^ This commit fixes it Signed-off-by: Dinar Valeev <dvaleev@suse.com>
* | | | | | | MDEV-7831 Bad warning for DATE_ADD(timestamp_column, INTERVAL 10 SECOND)Alexander Barkov2015-03-255-11/+45
| | | | | | |
* | | | | | | MDEV-7825: Parallel replication race condition on gco->flags, possibly ↵Kristian Nielsen2015-03-242-5/+7
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resulting in slave hang The patch for optimistic parallel replication as a memory optimisation moved the gco->installed field into a bit in gco->flags. However, that is just plain wrong. The gco->flags field is owned by the SQL driver thread, but gco->installed is used by the worker threads, so this will cause a race condition. The user-visible problem might be conflicts between transactions and/or slave threads hanging. So revert this part of the optimistic parallel replication patch, going back to using a separate field gco->installed like in 10.0.
* | | | | | MDEV-7677 my_charset_handler_filename has a wrong "ismbchar" memberAlexander Barkov2015-03-233-2/+24
| | | | | |
* | | | | | MDEV-7813 analyze_stmt fails with --embedded flag set10.1-MDEV-7813Vicențiu Ciorbaru2015-03-214-87/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved the privilege checking code which does not apply for embedded to a separate test case.
* | | | | | MDEV-7797: file_key_management_plugin uses static IV for a keyJan Lindström2015-03-202-296/+282
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently crypt data is written to file space always. Use that to obtain random IV for every object (file). Beatify code to confort InnoDB coding styles. Conflicts: storage/innobase/fil/fil0crypt.cc storage/xtradb/fil/fil0crypt.cc
* | | | | | A preparatory patch for MDEV-7284 INDEX: CREATE OR REPLACE.Alexander Barkov2015-03-206-28/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing "bool Key::create_if_not_exists" and deriving Key from DDL_options instead.
* | | | | | Refactoring in sql_yacc.yy. A pre-requirement patch forAlexander Barkov2015-03-203-133/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MDEV-7801 Unexpected syntax error in ALTER TABLE t1 ADD INDEX TYPE BTREE MDEV-7284 INDEX: CREATE OR REPLACE
* | | | | | MDEV-5214 Status variables for number of global/db/table/column/role grantsVicențiu Ciorbaru2015-03-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Updated information_schema test result;
* | | | | | Update galera.global_suppressions with galera warnings.Nirbhay Choubey2015-03-191-0/+2
| | | | | |
* | | | | | MDEV-5214 Status variables for number of global/db/table/column/role grantsVicențiu Ciorbaru2015-03-195-0/+224
| | | | | | | | | | | | | | | | | | | | | | | | Implemented the status variables for use with the feedback plugin.