- 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 2 commits
-
-
Sergei Golubchik authored
-
Alexey Botchkov authored
Conflicts: plugin/server_audit/server_audit.c
-
- 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.
-
- 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 3 commits
-
-
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.
-
Monty authored
- Added testing if connection is killed to shortcut reading of connection data This will allow us later in 10.2 to do a cleaner shutdown of slaves (less errors in the log) - Add new status variables: Slaves_connected, Slaves_running and Slave_connections. - Use MYSQL_SLAVE_NOT_RUN instead of 0 with slave_running. - Don't print obvious extra warnings to the error log when slave is shut down normally.
-
Monty authored
Fixed compiler warnings Added --big-test to tokudb change_column_char & change_column_bin
-
- 30 Dec, 2015 2 commits
-
-
Vladislav Vaintroub authored
-
Vladislav Vaintroub authored
Fix process handle leak in buildbot. GenerateConsoleCtrlEvent sent to non-existing process will add a process handle to this non-existing process to console host process conhost.exe
-
- 29 Dec, 2015 7 commits
-
-
Alexander Barkov authored
-
Alexander Barkov authored
as it's needed for Cassandra in 10.0.
-
Alexander Barkov authored
-
Alexander Barkov authored
-
Sergey Vojtovich authored
Provided IBM System Z have outdated compiler version, which supports gcc sync builtins but not gcc atomic builtins. It also has weak memory model. InnoDB attempted to verify if __sync_lock_test_and_set() is available by checking IB_STRONG_MEMORY_MODEL. This macro has nothing to do with availability of __sync_lock_test_and_set(), the right one is HAVE_ATOMIC_BUILTINS.
-
Sergey Vojtovich authored
Provided IBM System Z have outdated compiler version, which supports gcc sync builtins but not gcc atomic builtins. It also has weak memory model. InnoDB attempted to verify if __sync_lock_test_and_set() is available by checking IB_STRONG_MEMORY_MODEL. This macro has nothing to do with availability of __sync_lock_test_and_set(), the right one is HAVE_ATOMIC_BUILTINS.
-
Alexander Barkov authored
-
- 21 Dec, 2015 3 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
MDEV-9249 MariaDB un-buildable on linux64: fails @ "error: ‘ERR_remove_state’ was not declared in this scope" when linking against OpenSSL 1.0.2e ERR_remove_state is deprecated, use ERR_remove_thread_state if possible
-
- 19 Dec, 2015 6 commits
-
-
Sergei Golubchik authored
On shutdown feedback was sending a short report without creating a THD. At that point current_thd was pointing to the already destroyed THD from the previous full report. backport from 10.1: commit bfe703a4 Author: Sergei Golubchik <serg@mariadb.org> Date: Tue Feb 3 18:19:56 2015 +0100 don't let current_thd to point to a destroyed THD
-
DevilSatan authored
A string definition is inconsistent and thus causes a compilation error. Signed-off-by: Vicențiu Ciorbaru <vicentiu@mariadb.org>
-
Vicențiu Ciorbaru authored
Fixed compile warning related to if statement always being true. The if statement can not be false, as the address of a member field is always true.
-
Vicențiu Ciorbaru authored
Removed unused functions from tokudb_dump.cc.
-
Vicențiu Ciorbaru authored
This patch fixes another compilation error caused by specifying attribute nonnull for all the parameters of the copyout function. This is incorrect as the function actually gets called with null parameters indirectly and thus only the output parameter should be nonnull.
-
Vicențiu Ciorbaru authored
This patch fixes one compilation error related to __db_lsn struct. The struct can not be defined as empty according to the main C standard. In C++, this is handled by forcing a size of 1. To eliminate the error we add a dummy char field of size 1. This has no effect on the C++ compiled code, but also removes the compiler error.
-
- 18 Dec, 2015 3 commits
-
-
Daniel Black authored
10.0 has an "analyze table .. persistent for all" syntax. This adds --persistent to mysqlcheck(mysqlanalyize) to perform this extended analyze table option. Signed-off-by: Vicențiu Ciorbaru <vicentiu@mariadb.org>
-
Sergey Vojtovich authored
-
Sergey Vojtovich authored
-