maria:bb-10.11-wlad-MDEV-29251

Last commit made on 2022-10-04
Get this branch:
git clone -b bb-10.11-wlad-MDEV-29251 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.11-wlad-MDEV-29251
Repository:
lp:maria

Recent commits

21e2613... by Vladislav Vaintroub

MDEV-29251 Set output directories during compilation

..to create s directory layout that closely resembles zip/tarball/MSI
install.

If we call ${CMAKE_BINARY_DIR} rsp CMAKE_BINARY_DIR/$<CONFIG>
$build_dir , then the compilation will place executables into
$build_dir/bin, and plugins into $build_dir/lib/plugins

Immediate benefits are
- searching, copying or symlinking of plugins in mtr is no more necessary
- searching for executables in mtr is simplified.
- Windows mariadbd.exe will to automatically set correct default
plugin directory (it had always been relative to location of the exe itself)

Other changes
"initial_database" target will create datadir $buildroot/data
directory, instead of $buildroot/sql/data, to still allow
server on Windows to start by just typing <path-to-mysqld> --console in
the shell.

8759967... by Sergei Golubchik

MDEV-29625 Some clients/scripts refer to old slow log variables

05c1195... by Sergei Golubchik

MDEV-29595 Adjust variable name for slow log file and help referring to the value

ef08810... by Sergei Golubchik

MDEV-7567 Add aliases with prefix log_slow for system variables relating to slow query log

post-merge fixes:
* remove log_slow_queries_not_using_indexes, no need to create variables
  that are deprecated since the moment of creation
* rename log_slow_query_enable->log_slow_query
  no other variable uses *_enable pattern
* MDEV-29626 Assertion `self == &Sys_slow_query_log' failed in fix_log_state
* tests

Closes #2137

af4918b... by Michael Qin <email address hidden>

MDEV-7567 Add aliases with prefix log_slow for system variables relating to slow query log.

Thus, all these variables will be
grouped together and more logically named.

Descriptions for the old variables were updated to indicate they are
now aliases for the newly introduced variables with prefix log_slow.

log_slow_queries_not_using_indexes_filter will not be addressed
in this merge request.
log_throttle_queries_not_using_indexes seems to no longer be in use.

MTR tests are also updated to include the new variable names.

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer Amazon Web
Services, Inc.

315f2e8... by Sergei Golubchik

cleanup: remove *slow*_basic tests

ba875e9... by midenok

MDEV-29664 Assertion `!n_mysql_tables_in_use' failed in innobase_close_connection

When ha_end_bulk_insert() fails F_UNLCK was done twice: in
select_insert::prepare_eof() and in select_create::abort_result_set().

Now we avoid making F_UNLCK in prepare_eof() if error is non-zero.

d026447... by Sergei Golubchik

Merge branch '10.10' into 10.11

aa08a74... by midenok

MDEV-29620 Assertion `next_insert_id == 0' failed in handler::ha_external_lock

ha_release_auto_increment() must be done before F_UNLCK.
Non-atomic case is handled by select_insert::binlog_query().

c579d66... by midenok

MDEV-29628 Memory leak after CREATE OR REPLACE with foreign key

MDEV-28933 added a condition to avoid keeping cached foreign keys when
renaming into temporary table. Such foreign keys must be freed.