maria:MDEV-24298

Last commit made on 2021-02-04
Get this branch:
git clone -b MDEV-24298 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
MDEV-24298
Repository:
lp:maria

Recent commits

7ed0e6c... by Roman Nozdrin <email address hidden>

MDEV-24298 MDB doesn't use Select Handler with INSERT..SELECT + UNION anymore

eacefbc... by Monty <email address hidden>

MDEV-24750 Various corruptions caused by Aria subsystem...

The test case was setting aria_sort_buffer_size to MAX_ULONGLONG-1
which was not handled gracefully by my_malloc() or safemalloc().
Fixed by ensuring that the malloc functions returns 0 if the size
is too big.
I also added some protection to Aria repair:
- Limit sort_buffer_size to 16G (after that a bigger sort buffer will
  not help that much anyway)
- Limit sort_buffer_size also according to sort file size. This will
  help by not allocating less memory if someone sets the buffer size too
  high.

b76e5c6... by THIRUNARAYANAN BALATHANDAYUTHAPANI

MDEV-24765 fseg_free_extent fails to call buf_page_free() for the whole segment

This is caused by commit c92f7e287fc0e21dc1b181284b1f8e2139d1c331(MDEV-8139).
InnoDB fails to set the page status as FREED in buffer pool while freeing
the extent.

b5dab19... by Vladislav Vaintroub

MDEV-24757 : fix potential null pointer dereference in I_S.thread_pool_queues

With the fix, new connection without THDs will now show NULL in
thread_pool_queues.CONNECTION_ID.

e2c571a... by Sergei Golubchik

MDEV-24498 mysql_config reports wrong libs for libmysqld

filter out tpool

324e5f0... by Marko Mäkelä

MDEV-24754 Crash in ha_partition_inplace_ctx::~ha_partition_inplace_ctx()

ha_innobase::commit_inplace_alter_table(): Fix a regression that was
introduced in 6d1f1b61b59310027698a92ccf533a3093f1ce04 (MDEV-24564).

b124158... by David Carlier

Mac M1 build support proposal (minus rocksdb option) (#1743)

52795c2... by FX

Apple Silicon is a 64-bit platform

73c43ee... by Sergey Petrunia

MDEV-24739: Assertion `root->weight >= ...' failed in SEL_ARG::tree_delete

Also update the SEL_ARG graph weight in:
- sel_add()
- SEL_ARG::clone()

Make key_{and,or}_with_limit() to also verify weight for the arguments
(There is no single point to verify SEL_ARG graphs constructed from
conditions that are not AND-OR formulas, so we hope that those are
connected with AND/OR and do it here).

a70a47f... by Marko Mäkelä

MDEV-24661: Remove the test innodb.innodb_wl6326_big

The purpose of the test was to ensure that the SX (update) mode of
index tree and buffer page latches are being used.

The test has become unstable, possibly due to changes related to
buf_pool.mutex and buf_pool.page_hash, or to the use of MDL in the
purge of transaction history.

In 10.6, the test depends on instrumentation that was refactored
or removed in MDEV-24142.

The use of different latching modes can better be indirectly observed
through high-concurrency benchmarks. For MDEV-14637, a performance test
was conducted where the finer-grained latching and
BTR_CUR_FINE_HISTORY_LENGTH were removed. It caused a 20% performance
regression for UPDATE and somewhat smaller for INSERT.

Any new problem with latching granularity should be easily caught by
performance testing, or by stress tests with Random Query Generator.