Commit graph

90817 commits

Author SHA1 Message Date
Sergei Golubchik
cf8bf0b68e encryption key management plugin api 2015-02-10 10:21:17 +01:00
Sergei Golubchik
c8997c39b4 initialize plugins in the specific order by plugin type
but do MyISAM first - to read mysql.plugin table
2015-02-10 10:21:17 +01:00
Jan Lindström
9cdf494197 Fixed XtraDB implementation of encryption and page encryption. 2015-02-10 10:21:17 +01:00
Monty
d7d589dc01 Push for testing of encryption 2015-02-10 10:21:17 +01:00
Monty
3a3ec744b5 cleanups done as part of adding encryption
- Fixed compiler warnings
- Added include/wait_for_binlog_checkpoint.inc, as suggested by JonasO
- Updated 'build-tags' to work with git (Patch by Serg)
2015-02-10 10:21:16 +01:00
Sergei Golubchik
01963e5df1 fix for cmake builds on windows 2015-02-10 10:21:16 +01:00
Sergei Golubchik
83c0866082 new read-only server variable version_ssl_library 2015-02-10 10:21:16 +01:00
Sergei Golubchik
0d676fa0b7 minor cleanup: ssl.cmake 2015-02-10 10:21:16 +01:00
Sergei Golubchik
4280b25ed8 --getopt-prefix-matching command-line option 2015-02-10 10:21:15 +01:00
Sergei Golubchik
0ce8703e99 password validation plugin API: renames 2015-02-10 10:21:15 +01:00
Sergei Golubchik
5e17ca565e don't mention bzr in "make distclean" warning message 2015-02-10 10:21:15 +01:00
Sergei Golubchik
df37215efb small cleanup of my_default.c 2015-02-10 10:21:15 +01:00
Sergei Golubchik
c7d9f11c8b update test results for embedded 2015-02-10 00:45:37 +01:00
Vicențiu Ciorbaru
4c69a6fff2 MDEV-6918 Create a way to see a user's default role.
Added an extra column to i_s_applicable_roles, named IS_DEFAULT.
The column displays which role is the default role for the user
querying the table.
2015-02-09 17:16:55 +02:00
Sergei Golubchik
bceb0b0be1 MDEV-7151 ha_archive.so missing from .deb
add missing plugins to debs
2015-02-08 20:44:46 +01:00
Sergei Golubchik
f13939061d Merge branch 'bb-10.1-merge' into 10.1 2015-02-07 16:14:21 +01:00
Kristian Nielsen
8672339328 MDEV-6676: Optimistic parallel replication
Adjust the configuration options, as discussed on the
maria-developers@ mailing list.

The option to hint a transaction to not be replicated in parallel is
now called @@skip_parallel_replication, consistent with
@@skip_replication.

And the --slave-parallel-mode is now simplified to have just one of
the following values:

  none
  minimal
  conservative
  optimistic
  aggressive

This reflects successively harder efforts to find opportunities to run
things in parallel on the slave. It allows to extend the server with
more automatic heuristics in the future without having to introduce a
new configuration option for each and every one.
2015-02-07 09:42:58 +01:00
Kristian Nielsen
734c4c0143 Add error handling on realpath() call.
(Without this, it happened for me that realpath() failed returning
undef for the default vardir. This in turn caused mysql-test-run.pl to
delete the source mysql-test/ directory.)
2015-02-07 09:42:57 +01:00
Daniel Black
2deaa292e7 MDEV-7201: parallel threads resizing - potential race condition to access freed memory
pool->threads is freed before being reassigned the new pool.

Although not really a memory barrier I though it prudent to keep the pool
thread count to be the lower of the old/new thread list before the new threads
is allocated.
2015-02-07 09:42:57 +01:00
Sergei Golubchik
3b267eb646 after-merge fixes for test cases 2015-02-06 20:18:40 +01:00
Sergei Golubchik
324cd36bd2 disable -Werror in the maintainer mode until we're ready for it 2015-02-06 18:06:46 +01:00
Sergei Golubchik
2a1470a0ed wsrep: check options as early as possible
to be able disable wsrep before any further code that uses it
(e.g. initialized binlog when wsrep is enabled)
2015-02-06 16:16:38 +01:00
Sergei Golubchik
c877610e16 wsrep: ha_abort_transaction() does NOT end the transaction 2015-02-06 16:15:17 +01:00
Sergei Golubchik
8e7649867f Merge 10.0-galera into 10.1 2015-02-06 16:14:23 +01:00
Sergei Golubchik
f9448bcb21 small cleanups 2015-02-05 19:18:39 +01:00
Sergey Vojtovich
32b0b6434b MDEV-7177 - Server hangs on shutdown after InnoDB error (main.plugin_loaderr
fails in buildbot)

There was a race condition in timer functionality of query timeouts.

Race was as following:
main thread:          init_thr_timers()
timer handler thread: my_thread_init()
main thread:          end_thr_timer()/timer_thread_state= ABORTING
timer handler thread: timer_thread_state= RUNNING, continue normal op
main thread:          waits indefinitely for timer handler thread to go down

The original idea of the fix is to set RUNNING state in main thread, before
starting timer handler thread. But it didn't survive further cleanups:
- removed "timer_thread_state" and used "thr_timer_inited" for this purpose
- removed unused "timer_thread_running"
- removed code responisble for "timer handler thread" shutdown synchronization,
  use pthread_join() instead.
2015-02-05 13:58:30 +04:00
Sergey Vojtovich
451e9b7a50 MDEV-7499 - System variables have broken default values on big endian
INFORMATION_SCHEMA.SYSTEM_VARIABLES.DEFAULT_VALUE had broken values on
big endian.

Default value is internally stored as longlong, while I_S references it's
pointer (longlong *) according to variable type (e.g. int, my_bool, etc). This
works well on little endian, but on big endian we always get 0 for such
variables.
2015-02-05 13:54:55 +04:00
Jan Lindström
b08126aad1 MDEV-7178: wsrep* tests fail in buildbot
This is temporal test fixt to avoid concurrent IST for now until
the actual issue https://github.com/codership/galera/issues/204
is fixed.
2015-02-05 08:52:17 +02:00
Elena Stepanova
ad433e17f9 MDEV-7255 Failures in engines/* tests
With commit 227510e039 (parser cleanup: don't store field properties in LEX,
use Create_field directly) it became possible to create columns DOUBLE(0,0) and alike
2015-02-05 02:44:03 +03:00
Jan Lindström
41dc186aa8 MDEV-6633: Remove magic dependencies for InnoDB compression methods
Added options for each compression type that can be disabled i.e.
bzip2, lz4, lzma and lzo.
2015-02-04 19:31:16 +02:00
Sergei Golubchik
bfe703a458 don't let current_thd to point to a destroyed THD
* reset current_thd in THD::~THD, otherwise my_malloc_size_cb_func()
  might access THD after it was destroyed.
* remove now redundant set_current_thd(0) calls that follow delete thd.
2015-02-03 18:19:56 +01:00
Sergei Golubchik
d0fb9580e0 Update test results after the last push. Again.
This reverts commit 06c1690445.
2015-02-03 09:31:13 +01:00
Monty
d8eba59d9c Commit one file that I forgot in last commit 2015-02-03 00:56:49 +02:00
Sergei Golubchik
80ce0c1c9c cleanup: ha_checktype()
* error reporting was never needed
* avoid useless transformaton hton to db_type to hton
* in many cases the engine was guaranteed to exist, add asserts
* use ha_default_handlerton() instead of ha_checktype(DB_TYPE_DEFAULT)
2015-02-02 20:57:46 +01:00
Sergei Golubchik
06c1690445 revert test changes from "cleaned up code for setting slave_parallel_mode"
but keep the code cleanup.
as it turns out, it didn't change the behavior, which is good :)
2015-02-02 18:02:43 +01:00
Sergei Golubchik
51bdfb01d8 trivial cleanup: be explicit about extern variables 2015-02-02 09:04:16 +01:00
Sergei Golubchik
9efd0207e4 fix the code to compile 2015-02-02 09:03:40 +01:00
Monty
cd9e69ec70 Cleaned up code for setting slave_parallel_mode
Now this works the same way as all other multi source variables.
2015-02-01 22:39:59 +02:00
Monty
0ee879ff8a Improve performance for calculating memory allocation
Extend interface for 'show variables' with current scope
2015-02-01 15:24:22 +02:00
Monty
67b24a2374 Remove some allocations not needed for internal temporary tables. 2015-02-01 14:19:39 +02:00
Monty
e7870122f3 Ignore tokudb binaries 2015-02-01 14:19:39 +02:00
Sergei Golubchik
6a3fee211f Merge remote-tracking branch 'refs/remotes/github/10.1' into 10.1 2015-02-01 12:39:59 +01:00
Sergei Golubchik
b2ceedc9fb main.ctype_ucs2 --ps: Item_func_nullif should use m_args0_copy metadata
in case args[0] changes between PREPARE and EXECUTE
2015-01-31 21:51:45 +01:00
Sergei Golubchik
f122cca4df main.null --ps: Item_null doesn't need charset converter
in particular, not the one that destructively changes Item's charset
(meaning different metadata for PREPARE and EXECUTE)
2015-01-31 21:51:45 +01:00
Sergei Golubchik
6f12cfdc5e fix semisync plugin locking: rpl.rpl_semi_sync_uninstall_plugin failed 2015-01-31 21:51:45 +01:00
Sergei Golubchik
863cfb3fa5 small cleanup, remove a useless function 2015-01-31 21:51:45 +01:00
Sergei Golubchik
b050354ffb compiler warnings 2015-01-31 21:51:45 +01:00
Sergei Golubchik
f299da89ba rpl.rpl_parallel: after-merge fix
* fix the test to pass
* rearrange tests in a file to allow it to auto-merge in the future
2015-01-31 21:51:45 +01:00
Sergei Golubchik
4b21cd21fe Merge branch '10.0' into merge-wip 2015-01-31 21:48:47 +01:00
Sergei Golubchik
a06624d61f merge 2015-01-30 21:24:39 +01:00