maria:10.4-MDEV-20094

Last commit made on 2024-04-05
Get this branch:
git clone -b 10.4-MDEV-20094 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
10.4-MDEV-20094
Repository:
lp:maria

Recent commits

5ffd65d... by THIRUNARAYANAN BALATHANDAYUTHAPANI

MDEV-20094 InnoDB blob allocation allocates extra extents

- InnoDB reserves the free extents unnecessarily during blob
page allocation even though btr_page_alloc() can handle
reserving the extent when the existing ran out of pages to be used.

8cc36fb... by Sergey Petrunia

MDEV-21102: Server crashes in JOIN_CACHE::write_record_data upon EXPLAIN with subqueries

JOIN_CACHE has a light-weight initialization mode that's targeted at
EXPLAINs. In that mode, JOIN_CACHE objects are not able to execute.

Light-weight mode was used whenever the statement was an EXPLAIN. However
the EXPLAIN can execute subqueries, provided they enumerate less than
@@expensive_subquery_limit rows.

Make sure we use light-weight initialization mode only when the select is
more expensive @@expensive_subquery_limit.

Also add an assert into JOIN_CACHE::put_record() which prevents its use
if it was initialized for EXPLAIN only.

a618ff2... by Daniele Sciascia <email address hidden>

MDEV-33216 stack-use-after-return in Wsrep_schema_impl::open_table()

Fix a case of stack-use-after-return reported by ASAN in
Wsrep_schema_impl::open_table(). This function has a stack allocated
TABLE_LIST object and return TABLE_LIST::table to the caller.
Changed the function to take a TABLE_LIST pointer as argument.

Signed-off-by: Julius Goryavsky <email address hidden>

c811393... by Dmitry Shulga <email address hidden>

MDEV-14959: the follow-up patch to turn on the option -DWITH_PROTECT_STATEMENT_MEMROOT by default

e6d12bb... by Yuchen Pei <email address hidden>

MDEV-33661 MENT-1591 Fix spider/bugfix.mdev_28856 because of MDEV-29718.

The failure should be table not found, rather than no spider same
server link

0b62737... by Yuchen Pei <email address hidden>

MDEV-33661 MENT-1591 Documenting spider_mon_table_cache and friends.

Partial documentation due to time constraints. Will improve over time.

Also removed a redundant parameter link_idx from
spider_get_sys_tables_connect_info().

And deleted some commented out code.

fa1ae36... by Julius Goryavsky <email address hidden>

galera: wsrep-lib submodule update

c71dc39... by Daniele Sciascia <email address hidden>

MDEV-26499 Fix error "mysql_shutdown failed" during MTR tests

- Fix to avoid mysqltest client getting killed abruptly during
  mysql_shutdown(). When Galera replication is shutdown, wait for
  THDs with `thd->stmt_da()->is_eof()` to disconnect (these are about
  to disconnect anyway).
- Extract duplicate code from `wsrep_stop_replication()` and
  `wsrep_shutdown_replication()` in a new function.
- No need to use a custom `shutdown_mysqld.inc` in galera
  suite. Delete it, so that the one in `mysql-test/include/` is used.

Signed-off-by: Julius Goryavsky <email address hidden>

db0b9ec... by Yuchen Pei <email address hidden>

MDEV-33584 Use the default SQL_MODE for spider init queries

This should fix all future problems caused by a non-default global
sql_mode from the server where spider is to be installed.

9d34939... by Yuchen Pei <email address hidden>

MDEV-33494 fix spider init with no_zero_date global sql mode

Like the fix for MDEV-32753 and MDEV-33242, spider init queries
creates new connections that use the global sql_mode of the existing
connection.