summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-7635: Part 110.2-mdev7635Nirbhay Choubey2016-09-0684-227/+397
| | | | | | | | | | | | | | | | | | | | | | | | | | | | innodb_buffer_pool_dump_at_shutdown = ON innodb_buffer_pool_dump_pct = 25 innodb_buffer_pool_load_at_startup = ON innodb_checksum_algorithm = CRC32 innodb_file_format = Barracuda innodb_file_format_max = Barracuda innodb_large_prefix = ON innodb_log_compressed_pages = ON innodb_log_file_size = 128M innodb_purge_threads = 4 innodb_stats_traditional = OFF innodb_strict_mode = ON binlog_annotate_row_events = ON binlog_format = MIXED group_concat_max_len = 1M histogram_size = 255 long-query-time = 2 lower_case_table_names = 2 max_allowed_packet = 16M replicate_annotate_row_events = ON slave_net_timeout = 60 sync_binlog = 1 use_stat_tables = complementary aria_recover = FORCE,BACKUP myisam_recover_options = FORCE,BACKUP
* Update sys_vars.sysvars_server_embedded after recent pushesSergei Petrunia2016-08-312-7/+7
|
* Update mysql-test/r/mysqld--help,win.rdiffSergei Petrunia2016-08-311-7/+7
| | | | | Recent commits has added new variables and changed the default for server-id, which caused the patch in rdiff to no longer apply.
* Fixed length of codding of COM_MULTI parts.Oleksandr Byelkin2016-08-311-13/+24
|
* MDEV-8931: (server part of) session state trackingOleksandr Byelkin2016-08-3111-153/+198
| | | | | Postreview fixes. New MySQL tests fixes.
* MDEV-8931: (server part of) session state trackingOleksandr Byelkin2016-08-3132-266/+1169
| | | | Transaction tracker
* MDEV-8931: (server part of) session state trackingOleksandr Byelkin2016-08-3122-153/+1483
| | | | System variables tracking
* MDEV-8931: (server part of) session state trackingOleksandr Byelkin2016-08-3128-46/+928
| | | | initial commit to test
* Fixed package build failure README -> README.mdSergey Vojtovich2016-08-311-1/+1
|
* Merge pull request #222 from grooverdan/10.2-README-markdownSergey Vojtovich2016-08-312-2/+17
|\ | | | | Markdown README for a prettier github representation
| * Markdown README for a prettier github representationDaniel Black2016-08-242-2/+17
| |
* | Safety fix to previous patchMonty2016-08-301-2/+2
| |
* | Fixed failures for privilege_table_io and wsrep_cluster_address_basicMonty2016-08-293-8/+11
| | | | | | | | | | | | | | | | - Sometimes privilege_table_io printed double rows of roles_mapping - Fixed by forcing restart of server when running test - Wsrep_cluster_address_basic failed in some combinations because wsrep_cluster_address was set to NULL - Fixed by ensuring it's never set to NULL, only empty string
* | Set server_id to 1 by default and disallow to set it to 0Monty2016-08-2910-46/+24
| | | | | | | | | | | | | | This makes it easier to setup master as on only have to set --log-bin. Before this patch if one did set up the master with just --log-bin, slaves could not connect until server_id was set on the master, which could be both confusing and hard to do.
* | Fixed compiler warning and failing test suite because system dependencyMonty2016-08-292-1/+2
| |
* | Better SHOW PROCESSLIST for replicationMonty2016-08-296-7/+32
| | | | | | | | | | | | | | | | | | | | - When waiting for events, start time is now counted from start of wait - Instead of having "Connect" as "Command" for all replication threads we now have: - Slave_IO for Slave thread reading relay log - Slave_SQL for slave executing SQL commands or distribution queries to Slave workers - Slave_worker for slave threads executin SQL commands in parallel replication
* | Feature_check_constraint status variableSergei Golubchik2016-08-275-3/+19
| |
* | re-fix vcols on demand, not always for every SELECTSergei Golubchik2016-08-274-2/+32
| |
* | move away from TIMESTAMP_DNUN_FIELD/TIMESTAMP_DN_FIELD codeSergei Golubchik2016-08-279-171/+85
| | | | | | | | | | use the new approach with Field->default_value expressions. But keep the old TIMESTAMP_UN_FIELD for ON UPDATE NOW().
* | optimize constant default expressionsSergei Golubchik2016-08-277-118/+141
| | | | | | | | | | to be calculated at the CREATE TABLE time and stored in the default row image.
* | fix: CHECK and DEFAULT after CREATE ... SELECTSergei Golubchik2016-08-273-2/+30
| | | | | | | | | | expression defaults and check constraints should behave as constant default values - copied from fields, not copied from expressions
* | vcol flag rename VCOL_UNKNOWN -> VCOL_FIELD_REFSergei Golubchik2016-08-273-4/+4
| |
* | cleanup: redundant variableSergei Golubchik2016-08-273-8/+3
| |
* | clarify the commentSergei Golubchik2016-08-271-3/+3
| | | | | | | | and use the same error message for CREATE and open table time
* | clarify the error message for frm size overflowSergei Golubchik2016-08-274-6/+6
| |
* | fix: CREATE TABLE (col TIMESTAMP(6) DEFAULT NOW(2))Sergei Golubchik2016-08-275-70/+93
| | | | | | | | | | | | That is, when the precision of DEFAULT NOW() is less than the precision of the column, do not convert it to unireg_check, use the new approach where DEFAULT is tryly an expression.
* | session-state dependent functions in DEFAULT/CHECK/vcolsSergei Golubchik2016-08-2720-222/+422
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * revert part of the db7edfe that moved calculations from fix_fields to val_str for Item_func_sysconst and descendants * mark session state dependent functions in check_vcol_func_processor() * re-run fix_fields for all such functions for every statement * fix CURRENT_USER/CURRENT_ROLE not to use Name_resolution_context (that is allocated on the stack in unpack_vcol_info_from_frm()) Note that NOW(), CURDATE(), etc use lazy initialization and do *not* force fix_fields to be re-run. The rule is: * lazy initialization is *not* allowed, if it changes metadata (so, e.g. DAYNAME() cannot use it) * lazy initialization is *preferrable* if it has side effects (e.g. NOW() sets thd->time_zone_used=1, so it's better to do it when the value of NOW is actually needed, not when NOW is simply prepared)
* | split fix_vcol_expr()Sergei Golubchik2016-08-271-43/+45
| | | | | | | | into "fix" and "check" parts
* | NULL pointer dereferenceSergei Golubchik2016-08-271-2/+2
| | | | | | | | in a case of a specially crafted invalid frm
* | fix: DEFAULT() in a view should be not updatableSergei Golubchik2016-08-271-0/+1
| | | | | | | | | | | | | | as in create table t1 (a int); create view v1 as select default(a) as NOT_UPDATABLE from t1;
* | fix: CURRENT_ROLE() inside SECURITY DEFINER viewsSergei Golubchik2016-08-273-15/+15
| |
* | do not quote numbers in the DEFAULT clause in SHOW CREATESergei Golubchik2016-08-27103-4252/+4256
| |
* | cleanup: use multi_alloc_rootSergei Golubchik2016-08-271-26/+16
| |
* | Merge pull request #226 from 0xAX/profile-must-be-enabledSergey Vojtovich2016-08-271-0/+4
|\ \ | |/ |/| Call profiling.restart() and profiling.reset() only if profiling is e…
| * Call profiling.restart() and profiling.reset() only if profiling is enabledAlexander Kuleshov2016-08-261-0/+4
|/ | | | | | | | | | | | | | | | in other case we will get: ../alex/dev/server/sql/sql_class.cc: In member function ‘void THD::free_connection()’: ../server/sql/sql_class.cc:1664:3: error: ‘profiling’ was not declared in this scope profiling.restart(); // Reset profiling ^~~~~~~~~ ../server/sql/sql_class.cc: In member function ‘void THD::reset_for_reuse()’: ../server/sql/sql_class.cc:1689:3: error: ‘profiling’ was not declared in this scope profiling.reset(); ^~~~~~~~~ errors.
* Revert "MDEV-9293 Connector/C integration"Vladislav Vaintroub2016-08-1961-637/+412
| | | | This reverts commit 7b89b9f5108c80f4f270da922d7e6c182a663719.
* MDEV-9293 Connector/C integrationVladislav Vaintroub2016-08-1961-412/+637
|
* MDEV-9185 - Integrate with Travis-CI for easier and more automatic QASergey Vojtovich2016-08-183-16/+73
| | | | Based on contributions by Daniel Black and Otto Kekäläinen.
* MDEV-10320: NO-OP ALTER TABLE on temporary tables gettingNirbhay Choubey2016-08-083-2/+28
| | | | | | | | | | | | .. logged under row binlog format In the early stages of ALTER TABLE execution, the implementation checks whether its a NOOP (alter_info->flags == 0), and if so, it returns after logging the command to binary log. The logging, however, was done unconditionally. Fixed by skipping the logging for temporary tables when under row based replication.
* MDEV-10216: Assertion `strcmp(share->unique_file_name,filename) ||Nirbhay Choubey2016-08-0811-14/+330
| | | | | | | | | | | | | | | | | | | .. share->last_version' failed in myisam/mi_open.c:67: test_if_reopen During the RENAME operation since the renamed temporary table is also opened and added to myisam_open_list/maria_open_list, resetting the last_version at the end of operation (HA_EXTRA_PREPARE_FOR_RENAME) will cause an assertion failure when a subsequent query tries to open an additional temporary table instance and thus attempts to reuse it from the open table list. This commit fixes the issue by skipping flush/close operations executed toward the end of ALTER for temporary tables. It also enables a shortcut for simple ALTERs (like rename, disable/enable keys) on temporary tables. As safety checks, added some assertions at code points that should not be hit for temporary tables.
* MDEV-9872: used optimized crc32 for SQL CRC32 functionDaniel Black2016-08-051-2/+1
| | | | Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
* crc32-vpmsum: Restore non volatile registers on zero length CRCAnton Blanchard2016-08-051-1/+0
| | | | | | | | | This is never hit in practice, because the wrapper code catches it, but fix the zero length exit to restore all the non volatile registers. From: https://github.com/antonblanchard/crc32-vpmsum/commit/aaf0ac48a401abfaa0ad2d520be755e66c1e2e95 Signed-off-by: Anton Blanchard <anton@samba.org>
* MDEV-9872: New Power8 crc32(ieee) optimized functionsDaniel Black2016-08-0512-152/+1038
| | | | | These are different from the existing crc32 functions which where really crc32c.
* test case for CRC32() SQL functionDaniel Black2016-08-052-0/+11
|
* MDEV-9872 - Add common optimized CRC32 function interfaceSergey Vojtovich2016-08-0421-1861/+42
| | | | | | | | Move crc32-vpmsum to extra. Compile static crc32-vpmsum instead of adding sources directly. Make use of crc32-vpmsum via my_checksum(). Based on contribution by Daniel Black.
* MDEV-7901: re-implement analyze table for low impactOleksandr Byelkin2016-08-037-135/+285
| | | | | Table before collecting engine independent statistics now is reopened in read mode, InnoDB allow write operations in this case.
* MDEV-10492: Assertion failure on shutdown when wsrep_sst_auth set in configNirbhay Choubey2016-08-037-6/+29
| | | | | | | The memory alloc-ed initially for wsrep_sst_auth to store the value specified in config was lost as the global variable was reset while in process of masking it and thus, could never be reclaimed on shutdown.
* Galera test fixes.Nirbhay Choubey2016-07-305-1/+42
|
* Cleanup around wsrep system variables.Nirbhay Choubey2016-07-306-58/+54
|
* Cleanup around wsrep mdl exception.Nirbhay Choubey2016-07-302-58/+98
|