- 27 Jul, 2017 2 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
- 24 Jul, 2017 1 commit
-
-
Vicențiu Ciorbaru authored
-
- 22 Jul, 2017 1 commit
-
-
Sergei Golubchik authored
-
- 21 Jul, 2017 1 commit
-
-
Jan Lindström authored
Problem was that dict_sys->size tries to maintain used memory occupied by the data dictionary table and index objects. However at least on table objects table->heap size can increase between when table object is inserted to dict_sys and when it is removed from dict_sys causing inconsistency on amount of memory added to and removed from dict_sys->size variable. Removed unnecessary dict_sys:size variable as it is really used only for status output. Introduced dict_sys_get_size function to calculate memory occupied by the data dictionary table and index objects that is then used on show engine innodb output. dict_table_add_to_cache(), dict_table_rename_in_cache(), dict_table_remove_from_cache_low(), dict_index_remove_from_cache_low(), Remove size calculation. srv_printf_innodb_monitor(): Use dict_sys_get_size function to get dictionary memory allocated. xtradb_internal_hash_tables_fill_table(): Use dict_sys_get_size function to get dictionary memory allocated.
-
- 20 Jul, 2017 6 commits
-
-
Sergei Golubchik authored
apparently it uses a smaller per-thread stack
-
Sergei Golubchik authored
Backport of 7e29f2d6 from 10.1. Create_field does not set BINARY_FLAG, so the check didn't work at all. Also, character sets were already compared, so this check would've been redundant (if it would've worked).
-
Sergei Golubchik authored
InnoDB fix will come in MDEV-13360. Here I just fix upgrades from old unfixed InnoDBs - bad data makes the following copying ALTER TABLE to fail.
-
Sergei Golubchik authored
MDEV-13173 An RLIKE that previously worked on 10.0 now returns "Got error 'pcre_exec: recursion limit of 100 exceeded' from regexp" 1. use Regexp_processor_pcre::set_recursion_limit() to set the recursion limit depending on the current available stack size 2. make pcre stack frame to be estimated no less than 500 bytes. sometimes pcre estimates it too low, even though the manual says 500+16 bytes (it was estimated only 188 for me, actual frame size was 512). 3. do it for embedded too
-
Sergei Golubchik authored
Change the semantics of thd_get_error_context_description(). It no longer expects the caller to lock LOCK_thread_count (no caller ever did that anyway), but takes care of it internally.
-
Sergei Golubchik authored
-
- 19 Jul, 2017 2 commits
-
-
Daniel Bartholomew authored
-
Sachin Setiya authored
Problem rpl.rpl_mdev-11092 fails in buildbot because after starting slave in wait_for_slave_sql_error_and_skip.inc slave is started but there may be chances that we have not skipped the last error and Last_SQL_Errno is still not zero untill the end of rpl_end.inc , which will compare Last_SQL_Errno to 0. So in this this case rpl_mdev-11092 fails. Solution After starting slave in wait_for_slave_sql_error_and_skip.inc we will wait for Last_SQL_Errno to become 0.
-
- 18 Jul, 2017 12 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Daniel Black authored
Inspired by: https://github.com/devexp-db/mariadb/blob/f27/mariadb-covscan-stroverflow.patch
-
Daniel Black authored
Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
-
Sergei Golubchik authored
test case
-
Sergei Golubchik authored
simplify. add a test case.
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Oleksandr Byelkin authored
MDEV-11240: Server crashes in check_view_single_update or Assertion `derived->table' failed in mysql_derived_merge_for_insert Move table pointer for single table view (even if it is view over other view) to make the access universal.
-
Alexey Botchkov authored
Set name_length properly in Item_idnet constructors.
-
Daniel Black authored
end_io_call uses uninitialized values from the new_data_cache As such we the buffer 0 and check this before calling end_io_cache on it. Thanks Sergey Vojtovich for the review and for this solution. Found by Coverity (ref 972481).
-
- 17 Jul, 2017 2 commits
-
-
Elena Stepanova authored
-
Alexander Barkov authored
A few tests assumes that the CYCLE timer is always available, which is not true on some platforms (e.g. ARM). Fixing the tests not to reply on the CYCLE availability.
-
- 15 Jul, 2017 4 commits
-
-
Daniel Black authored
Increased size in tests to allow for 100 character hostname. Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
-
Sergei Golubchik authored
in ab785bfe
-
Daniel Black authored
Coverity report this as: CID 971840 (#1 of 1): Operands don't affect result (CONSTANT_EXPRESSION_RESULT) result_independent_of_operands: 4 | (flags & 1) is always true regardless of the values of its operands. This occurs as the logical first operand of "?:". The C order of precidence has | of higher precidence than ?:. The intenting implies an | of the 3 terms. Adjust to intented meaning.
-
Sergei Golubchik authored
Avoid using STDERR_FILENO. The server uses freopen(stderr), so stderr can be on any file descriptor.
-
- 14 Jul, 2017 2 commits
-
-
Daniel Black authored
Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
-
Daniel Black authored
field_names[x][y] is a pointer client/mysql.cc: In function 'void build_completion_hash(bool, bool)': client/mysql.cc:2855:37: error: invalid conversion from 'char' to 'char*' [-fpermissive] field_names[i][num_fields*2]= '\0'; Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
-
- 13 Jul, 2017 1 commit
-
-
Sergei Golubchik authored
Same MDEV, second bug. Merge buffer must fit at least MERGEBUFF2 (that is, 15) key values. Because merge_index() can merge that many buffers, and merge_many_buff() leaves that many buffers unmerged.
-
- 12 Jul, 2017 6 commits
-
-
Sergei Golubchik authored
use the correct value for the merge_buffer size, max_in_memory_size is too small and merge_walk() fails. also: remove a cast.
-
Sergei Golubchik authored
already fixed by be55bbc2 just add a test case
-
Sergei Golubchik authored
only compare field references with an alias (from the SELECT clause) when this reference doesn't specify an explicit table name part.
-
Sergei Golubchik authored
remove unused variable
-
Sergei Golubchik authored
already fixed by a7ed4644. just add a test case,
-
Sergei Golubchik authored
upper->item can be NULL if we're referring to an aggregate function
-