- 28 Sep, 2016 1 commit
-
-
Sergei Petrunia authored
(Fixing both InnoDB and XtraDB) Re-opening a TABLE object (after e.g. FLUSH TABLES or open table cache eviction) causes ha_innobase to call dict_stats_update(DICT_STATS_FETCH_ONLY_IF_NOT_IN_MEMORY). Inside this call, the following is done: dict_stats_empty_table(table); dict_stats_copy(table, t); On the other hand, commands like UPDATE make this call to get the "rows in table" statistics in table->stats.records: ha_innobase->info(HA_STATUS_VARIABLE|HA_STATUS_NO_LOCK) note the HA_STATUS_NO_LOCK parameter. It means, no locks are taken by ::info() If the ::info() call happens between dict_stats_empty_table and dict_stats_copy calls, the UPDATE's optimizer will get an estimate of table->stats.records=1, which causes it to pick a full table scan, which in turn will take a lot of row locks and cause other bad consequences.
-
- 24 Aug, 2016 1 commit
-
-
Elena Stepanova authored
- mysql-test/unstable-tests list is created, it includes = tests identified as unstable by Debian; = tests which failed in buildbot on 10.0 over the last ~6 months and were not fixed; = tests which have been recently modified or newly added - '*' wildcard is now supported in skip lists
-
- 23 Aug, 2016 3 commits
-
-
Vicențiu Ciorbaru authored
Followup from 5.5 patch. Removing memory barriers on intel is wrong as this doesn't prevent the compiler and/or processor from reorganizing reads before the mutex release. Forcing a memory barrier before reading the waiters will guarantee that no speculative reading takes place.
-
Vicențiu Ciorbaru authored
In well defined C code, the "this" pointer is never NULL. Currently, we were potentially dereferencing a NULL pointer (master_info_index). GCC v6 removes any "if (!this)" conditions as it assumes this is always a non-null pointer. In order to prevent undefined behaviour, check the pointer before dereferencing and remove the check within member functions.
-
Monty authored
-
- 22 Aug, 2016 2 commits
-
-
Monty authored
- Remove impossible test in test_quick_select - Ensure that is_fatal_error is set if we run out of stack space
-
Monty authored
The issue was that when running with valgrind the wait for master_pos_Wait() was not long enough. This patch also fixes two other failures that could affect rpl_mdev6020: - check_if_conflicting_replication_locks() didn't properly check domains - 'did_mark_start_commit' was after signals to other threads was sent which could get the variable read too early.
-
- 21 Aug, 2016 3 commits
-
-
Monty authored
compiled for debugging, when the server goes down This happens in the following scenario: - Server gets a shutdown message - Servers sends error ER_CONNECTION_KILLED to the clients connection - The client sends a query to the server, before the server has time to close the connection to the client - Client reads the ER_CONNECTION_KILLED error message In the above case, the packet number for the reply is one less than what the client expected and the client prints "Packets out of order". Fixed the following way: - The client accepts now error packages with a packet number one less than expected. - To ensure that this issue can be detected early in my_real_read(), error messages sent to the client are not compressed, even when compressed protocol is used.
-
Monty authored
- Handler_read_retry - Update_scan - Delete_scan
-
Monty authored
- Fixed typos - Added --core-on-failure to mysql-test-run - More DBUG_PRINT in viosocket.c - Don't forget CLIENT_REMEMBER_OPTIONS for compressed slave protocol - Removed not used stage variables
-
- 16 Aug, 2016 1 commit
-
-
Oleksandr Byelkin authored
fix for async operations
-
- 15 Aug, 2016 1 commit
-
-
Oleksandr Byelkin authored
Fix tests which possibly fail connects in non_blocking mode.
-
- 14 Aug, 2016 1 commit
-
-
Sergei Golubchik authored
-
- 13 Aug, 2016 3 commits
-
-
Jan Lindström authored
-
Jan Lindström authored
When checking is any of the renamed columns part of the columns for new indexes we accessed NULL pointer if checked column used on index was added on same statement. Additionally, we tried to check too many indexes, added_index_count is enough here.
-
Jan Lindström authored
MDEV-10469: innodb.innodb-alter-tempfile fails in buildbot: InnoDB: Warning: database page corruption or a failed Test case intentionally crashes the server and that could lead partially written pages that are then restored from doublewrite buffer.
-
- 12 Aug, 2016 1 commit
-
-
Monty authored
(like DROP TABLE) has been scheduled before conflicting DDL's (like INSERT) are commited. What makes these bugs hard to detect is that in most cases any wrong schduling are caught by MDL locks. It's only when there are timing issues that the bugs (usually deadlocks) are noticed. This patch adds a DBUG_ASSERT() that detects, in parallel replication, if a DDL is scheduled before any depending DML'S are commited. It does this be checking if there are any conflicting replication locks when the DDL is about to wait for getting it's MDL lock. I also did some minor code cleanups in sql_base.cc to make this code similar to other related code.
-
- 11 Aug, 2016 1 commit
-
-
Oleksandr Byelkin authored
Support of CLIENT_REMEMBER_OPTIONS and freeing options added.
-
- 10 Aug, 2016 12 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
1.04.0008
-
Sergei Golubchik authored
5.6.31-77.0
-
Sergei Golubchik authored
5.6.31-77.0
-
Sergei Golubchik authored
5.6.32
-
Sergei Golubchik authored
5.6.32
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Olivier Bertrand authored
modified: storage/connect/JdbcInterface.java - Change Version number and date modified: storage/connect/ha_connect.cc - Implement the test on connect_type_conv YES/NO modified: storage/connect/jdbconn.cpp modified: storage/connect/odbconn.cpp - Fix MDEV-10520. Local schema was confused with remote schema modified: storage/connect/tabjdbc.cpp modified: storage/connect/tabodbc.cpp - Fix crash when using mapped indices. Was trying to write in a mapped file declared as read only. modified: storage/connect/xindex.cpp
-
- 09 Aug, 2016 2 commits
-
-
Vicențiu Ciorbaru authored
Fix memory barrier issues on releasing mutexes. We must have a full memory barrier between releasing a mutex lock and reading its waiters. This prevents us from missing to release waiters due to reading the number of waiters speculatively before releasing the lock. If threads try and wait between us reading the waiters count and releasing the lock, those threads might stall indefinitely. Also, we must use proper ACQUIRE/RELEASE semantics for atomic operations, not ACQUIRE/ACQUIRE.
-
Sergei Golubchik authored
Windows!
-
- 08 Aug, 2016 5 commits
-
-
Sergei Golubchik authored
a correct fix: * store properly quoted table names in tables4repair/etc lists * tell handle_request_for_tables whether the name is aalready properly quoted * test cases for all uses of fix_table_name()
-
Sergei Golubchik authored
followup
-
Vicențiu Ciorbaru authored
tmp_join may get its tables freed twice during JOIN cleanup. Set them to NULL when the tmp_join is different than the current join.
-
Alexander Barkov authored
-
Alexander Barkov authored
MDEV-10500 CASE/IF Statement returns multiple values and shifts further result values to the next column We assume all around the code that null_value==true is in sync with NULL value returned by val_str()/val_decimal(). Item_sum_sum::val_decimal() erroneously returned a non-NULL value together with null_value set to true. Fixing to return NULL instead.
-
- 07 Aug, 2016 1 commit
-
-
Sergei Golubchik authored
thd->clear_error() destroyed already existing error status
-
- 04 Aug, 2016 2 commits
-
-
Sergei Petrunia authored
Make the testcase stable by adding FORCE INDEX
-
Sergei Golubchik authored
-