- 15 Feb, 2016 9 commits
-
-
Jan Lindström authored
MDEV-9469: 'Incorrect key file' on ALTER TABLE InnoDB needs to rebuild table if column name is changed and added index (or foreign key) is created based on this new name in same alter table.
-
Sergei Golubchik authored
"x86_64" is "amd64" on FreeBSD
-
Sergei Golubchik authored
mysql.cc: Unlike the main MYSQL structure, kill_mysql did not have MYSQL_OPT_PROTOCOL set. Move all connection-related settings to a separate function and use it both for the main MYSQL and for kill_mysql.
-
Sergei Golubchik authored
MDEV-9390 Function found_rows() gives incorrect result where the previous SELECT contains ORDER BY clause use the raw found_rows value only when SQL_CALC_FOUND_ROWS was specified
-
Sergei Golubchik authored
following InnoDB's logic, altering a comment or a default field's value needs "NO_LOCK", not EXCLUSIVE
-
Sergei Golubchik authored
Only set Alter_inplace_info::ALTER_COLUMN_VCOL flag if a vcol might be affected by the ALTER TABLE statement
-
Sergei Golubchik authored
Followup fix for bug#35074: update the second location where max_used_connections is calculated (to be like the first one).
-
Sergei Golubchik authored
fix a few cases where a successful ALTER was not binlogged: * on errors after the completed ALTER, binlog it, then return an error * don't let thd->killed abort open_table() after completed online ALTER.
-
Sergei Golubchik authored
Fix the doubly questional fix for MySQL Bug#17250787: * it detected autoinc index by looking for the first index that starts from autoinc column. never mind one column can be part of many indexes. * it used autoinc_field->field_index to look up into internal innodb dictionary. But field_index accounts for virtual columns too, while innodb dictionary ignores them. Find the index by its name, like elsewhere in ha_innobase.
-
- 12 Feb, 2016 1 commit
-
-
Elena Stepanova authored
dml_setup_instruments did not restore settings in setup_instruments table after updating it as a part of the test flow
-
- 11 Feb, 2016 3 commits
-
-
Sergey Vojtovich authored
-
Sergey Vojtovich authored
Documentation fixes
-
Sergey authored
MDEV-9354: Debian: unmask the mysql.service on installation
-
- 08 Feb, 2016 1 commit
-
-
Ian Gilfillan authored
-
- 06 Feb, 2016 1 commit
-
-
Vicențiu-Marian Ciorbaru authored
MDEV-9433: mysys/my_rnd.c - remove #ifdef __cplusplus
-
- 04 Feb, 2016 3 commits
-
-
iangilfillan authored
-
iangilfillan authored
-
Jan Lindström authored
-
- 03 Feb, 2016 2 commits
-
-
Jan Lindström authored
-
Jan Lindström authored
MDEV-9471: Server crashes or returns an error while trying to alter partitioning on a table moved from Windows to Linux At alter table when server renames the table to temporal name, old name uses normal partioned table naming rules. However, if tables are created on Windows and then transfered to Linux and lower-case-table-names=1 we should modify the old name on rename to lower case to be able to find it from the InnoDB dictionary.
-
- 01 Feb, 2016 4 commits
-
-
Sergei Petrunia authored
-
Sergei Petrunia authored
create_partition_index_description() had wrong logic to calculate length of the key value buffer that is used by the range optimizer. For some reason it used MAX(partitioning_columns_len, subpartitioning_columns_len) while it should use SUM of these values.
-
Kristian Nielsen authored
Conflicts: configure.cmake
-
Georg Richter authored
The check for UCONTEXT in cmake was somehow become broken, disabling the fallback to ucontext. This caused the non-blocking client API to not be available for non-x86 platforms, on which no hand-crafted assembler implementation of my_context is available.
-
- 26 Jan, 2016 1 commit
-
-
Alexey Botchkov authored
Change parser so it saves all the query line to the ';' in the sp_instr::m_query.
-
- 25 Jan, 2016 3 commits
-
-
Sergei Golubchik authored
-
iangilfillan authored
-
Alexey Botchkov authored
Conflicts: plugin/server_audit/server_audit.c
-
- 19 Jan, 2016 1 commit
-
-
Daniel Black authored
-
- 15 Jan, 2016 3 commits
-
-
Kristian Nielsen authored
Conflicts: sql/slave.cc
-
Kristian Nielsen authored
This occurs when replication stops with an error, domain-based parallel replication is used, and the GTID position contains more than one domain. Furthermore, it relates to the case where the SQL thread is restarted without first stopping the IO thread. In this case, the file/offset relay-log position does not correctly represent the slave's multi-dimensional position, because other domains may be far ahead of, or behind, the domain with the failing event. So the code reverts the relay log position back to the start of a relay log file that is known to be before all active domains. There was a bug that when the SQL thread was restarted, the rli->relay_log_state was incorrectly initialised from @@gtid_slave_pos. This position will likely be too far ahead, due to reverting the relay log position. Thus, if the replication fails again after the SQL thread restart, the rli->restart_gtid_pos might be updated incorrectly. This in turn would cause a second SQL thread restart to replicate from the wrong position, if the IO thread was still left running. The fix is to initialise rli->relay_log_state from @@gtid_slave_pos only when we actually purge and re-fetch relay logs from the master, not at every SQL thread start. A related problem is the use of sql_slave_skip_counter to resolve replication failures in this kind of scenario. Since the slave position is multi-dimensional, sql_slave_skip_counter can not work properly - it is indeterminate exactly which event is to be skipped, and is unlikely to work as expected for the user. So make this an error in the case where domain-based parallel replication is used with multiple domains, suggesting instead the user to set @@gtid_slave_pos to reliably skip the desired event.
-
Alexey Botchkov authored
fixing Windows crash.
-
- 13 Jan, 2016 2 commits
-
-
Alexey Botchkov authored
updata thread_pool_server_audit test result.
-
Alexey Botchkov authored
MariaDB 5.5 built in debug gets unhappy with mutexes. Although everything is correct, some DBUG_ASSERT can happen. So this patch keeps safe_mutex silent.
-
- 12 Jan, 2016 1 commit
-
-
Alexey Botchkov authored
The audit API was seriously changed in MySQL 5.7. so we had to adapt the plugin's code to that.
-
- 11 Jan, 2016 1 commit
-
-
Otto Kekäläinen authored
Unmask the systemd mysql.service if left behind by mysql-server-5.6 Without this a simple 'apt-get install mariadb-server' would end up with a system where mysqld is not running despite it was running OK with mysql-server-5.6 installed, and users might wrongly think mariadb-server package is broken when the real cause was the removal of mysql-server-5.6 that left a /etc/systemd/system/ file behind pointing to /dev/null.
-
- 07 Jan, 2016 3 commits
-
-
Vladislav Vaintroub authored
Fix test whether process is alive in mysqltest. Also fix SHUT_RD definition on Windows to be SD_RECEIVE. SD_BOTH was used instead prior to this patch, and this would occasionally make mysql_shutdown() fail - when the socket for the current connection is not able send the COM_SHUTDOWN response anymore.
-
Vladislav Vaintroub authored
-
Vladislav Vaintroub authored
If GCC or CLang compile with link time optimization (-flto), they throw an error during link , when lto sees a function (e.g mysql_real_connect) is redeclared as "external void *" in libmysql_exports.cc The fix disables -flto for generated libmysql_exports.cc
-
- 03 Jan, 2016 1 commit
-
-
Monty authored
The problem was that wait_for_slave_io_to_start reported that the io thread was ready, when it was still initializing. This caused test suite to continue too early, for example before the semi sync plugin was properly enabled. Fixed by introducing a new internal stage: "Preparing". Slave_IO_Running is now set to "Yes" only when all initializing is done and the IO thread is ready to read things from the master. The only test affected by this change is rpl_flsh_tbls, which got stuck in the preparing phase while trying to read the GTID position from a table. Fixed by having this test waiting for Preparing instead of Yes.
-