- 23 Jun, 2015 2 commits
-
-
Sergey Vojtovich authored
Split first_breadth_first_tab() into JOIN::first_breadth_first_optimization_tab() and JOIN::first_breadth_first_execution_tab(). This allows to eliminate function call and one condition. Adjusted callers accordingly. Overhead change: first_breadth_first_tab() 0.07% -> out of radar next_breadth_first_tab() 0.04% -> 0.04% JOIN::cleanup() 0.15% -> 0.11% JOIN::save_explain_data_intern() 0.28% -> 0.24%
-
Sergey Vojtovich authored
Moved Apc_target::destroy(), Apc_target::enable() and Apc_targe::disable() definitions to my_apc.h so that they can be inlined. Apc_targe::disable() now calls Apc_target::process_apc_requests() only if there're APC requests. This saves one pthread_mutex_lock() call. Overhead change: Apc_target::disable 0.04% -> out of radar Apc_target::enable 0.03% -> out of radar Apc_target::process_apc_requests 0.02% -> out of radar pthread_mutex_lock 0.43% -> 0.42% pthread_mutex_unlock 0.26% -> 0.25%
-
- 22 Jun, 2015 1 commit
-
-
Vicențiu Ciorbaru authored
The crash was caused by attempting to use a hashtable without it getting initialized, due to the --skip-grant-tables switch.
-
- 20 Jun, 2015 2 commits
-
-
Sergei Petrunia authored
-
Sergei Petrunia authored
ANALYZE should also record remove_duplicates() operation.
-
- 19 Jun, 2015 7 commits
-
-
Sergei Petrunia authored
Handle the case where the optimizer decides to use handler->delete_all_rows(), but then this call returns HA_ERR_UNSUPPORTED and execution switches to regular row-by-row deletion.
-
Sergey Vojtovich authored
Do not call handler::rebind_psi() and handler::unbind_psi() when performance schema is compiled out. Overhead change: handler::rebind_psi 0.04% -> out of radar handler::unbind_psi 0.03% -> out of radar open_table 0.21% -> 0.18% close_thread_table 0.05% -> 0.05%
-
Sergey Vojtovich authored
Initialize abs_timeout when it is about to be used. This saves one my_hrtime() call on hot path (when we acquire MDL lock without waiting). When filling I_S.PROCESSLIST use THD::start_utime/THD::utime_after_query instead of THD::start_time. This allows us to save 2 clock_gettime() calls. Overhead change: __clock_gettime 0.13% -> 0.11% (122 -> 76 calls per OLTP RO transaction) my_interval_timer 0.07% -> 0.06% my_hrtime 0.04% -> 0.01%
-
Sergey Vojtovich authored
Pass THD to Sort_and_group_tracker::report_sorting(). This reduces number of pthread_getspecific() calls from 292 to 290.
-
Sergey Vojtovich authored
Pass THD to Item_field (and all derivatives) constructors. This reduces number of pthread_getspecific() calls from 322 to 292.
-
Sergey Vojtovich authored
Pass THD to find_all_keys() and Item_equal::Item_equal(). In MRR use table->in_use instead of current_thd. This reduces number of pthread_getspecific() calls from 354 to 320.
-
Sergey Vojtovich authored
Various fixes to let MariaDB compile with performance schema disabled.
-
- 18 Jun, 2015 6 commits
-
-
Alexander Barkov authored
-
Alexander Barkov authored
Field_temporal_with_date::validate_for_get_date() and reusing it in a few places.
-
Jan Lindström authored
Instead of asserting print informative error message to error log and return failure from innodb_init causing the server to shutdown.
-
Sergei Petrunia authored
-
Sergei Petrunia authored
-
Jan Lindström authored
Added new dynamic configuration variable innodb_buf_dump_status_frequency to configure how often buffer pool dump status is printed in the logs. A number between [0, 100] that tells how oftern buffer pool dump status in percentages should be printed. E.g. 10 means that buffer pool dump status is printed when every 10% of number of buffer pool pages are dumped. Default is 0 (only start and end status is printed).
-
- 17 Jun, 2015 1 commit
-
-
Jan Lindström authored
Moved warning print to debug builds only because on production these messages are unnecessary.
-
- 15 Jun, 2015 2 commits
-
-
Kristian Nielsen authored
-
Kristian Nielsen authored
Follow-up patch to temporarily avoid a sporadic failure in the test rpl.rpl_000011 due to MDEV-8301. There is a window during thread exit where the global status is counted incorrectly - the contribution for the exiting thread is counted twice. The patch for MDEV-8294 made this window visible to the test case rpl.rpl_000011, causing it to sporadically fail. Temporarily silence this with a wait for the expected value; can be removed once MDEV-8294 is fixed.
-
- 10 Jun, 2015 2 commits
-
-
Kristian Nielsen authored
-
Kristian Nielsen authored
There were some cases where the slave SQL thread could stop without the pool of parallel replication worker threads being correctly de-activated.
-
- 09 Jun, 2015 7 commits
-
-
Nirbhay Choubey authored
Add log_bin_index, log_bin_basename and relay_log_basename system variables. Also, convert relay_log_index system variable to NO_CMD_LINE and implement --relay-log-index as a command line option.
-
Alexander Barkov authored
MDEV-8167 XOR returns bad results for an indexed column The bug itself was earlier fixed by one of the earlier changes.
-
Alexander Barkov authored
The bug itself was earlier fixed by this patch: commit 3709c7fc MDEV-8222 "string_field LIKE int_const" returns a wrong result in case of UCS2 MDEV-8257 Erroneous "Impossible where" when mixing decimal comparison and LIKE
-
Jan Lindström authored
Analysis: Problem was that actual payload size (page size) after compression was handled incorrectly on encryption. Additionally, some of the variables were not initialized. Fixed by encrypting/decrypting only the actual compressed page size.
-
Jan Lindström authored
MDEV-8268: InnoDB: Assertion failure in file buf0buf.cc line 5842 failing assertion ut_a(free_slot != NULL); Analysis: Problem is that there is not enough temporary buffer slots for pending IO requests. Fixed by allocating same amount of temporary buffer slots as there are max pending IO requests.
-
Jan Lindström authored
Removed memcpy's on cases when page is not encrypted and make sure we use the correct buffer for reading/writing.
-
Alexander Barkov authored
-
- 05 Jun, 2015 1 commit
-
-
Sergei Petrunia authored
- Make ANALYZE correctly remember and report filesort() calls - Temp.table use is collected but only basic info is reported.
-
- 04 Jun, 2015 1 commit
-
-
Jan Lindström authored
MDEV-8250: InnoDB: Page compressed tables are not compressed and compressed+encrypted tables cause crash Analysis: Problem is that both encrypted tables and compressed tables use FIL header offset FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION to store required metadata. Furhermore, for only compressed tables currently code skips compression. Fixes: - Only encrypted pages store key_version to FIL header offset FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION, no need to fix - Only compressed pages store compression algorithm to FIL header offset FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION, no need to fix as they have different page type FIL_PAGE_PAGE_COMPRESSED - Compressed and encrypted pages now use a new page type FIL_PAGE_PAGE_COMPRESSED_ENCRYPTED and key_version is stored on FIL header offset FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION and compression method is stored after FIL header similar way as compressed size, so that first FIL_PAGE_COMPRESSED_SIZE is stored followed by FIL_PAGE_COMPRESSION_METHOD - Fix buf_page_encrypt_before_write function to really compress pages if compression is enabled - Fix buf_page_decrypt_after_read function to really decompress pages if compression is used - Small style fixes
-
- 03 Jun, 2015 1 commit
-
-
Sergei Golubchik authored
-
- 02 Jun, 2015 7 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
return unsigned, not signed. return a value large enough for GCM
-
Sergei Golubchik authored
and don't recommend aes_ctr if it's unavailable
-
Sergei Golubchik authored
introduce ENCRYPTION_KEY_SYSTEM_DATA and ENCRYPTION_KEY_TEMPORARY_DATA constants; use them everywhere.
-
Sergei Golubchik authored
IO_CACHE tempfiles encryption
-
Sergei Golubchik authored
when working with IO_CACHE's, don't access IO_CACHE::file directly
-