maria:bb-10.4-MDEV-18973

Last commit made on 2019-11-08
Get this branch:
git clone -b bb-10.4-MDEV-18973 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.4-MDEV-18973
Repository:
lp:maria

Recent commits

0cf2ebd... by Kentoku SHIBA

MDEV-18973 CLIENT_FOUND_ROWS wrong in spider

Get count from last_used_con->info
Contributed by willhan at Tencent Games

c24ec3c... by Marko Mäkelä

Merge 10.3 into 10.4

352e766... by Marko Mäkelä

MDEV-20934: Make the test more robust

Due to MDEV-12288, the slow shutdown in MariaDB 10.3 will include
resetting the DB_TRX_ID for all inserted records. This might
cause the 60-second shutdown_server timeout to be exceeded.
Let us wait for the purge to complete before initiating slow shutdown.

928abd6... by Marko Mäkelä

Merge 10.3 into 10.4

908ca46... by Marko Mäkelä

Merge 10.2 into 10.3

90451a5... by Marko Mäkelä

Follow-up to 792c9f9a4977ea428537ca34435d39bd17cec5ff

dict_index_add_to_cache(): Make the 'index' a reference to a pointer,
so that the caller will avoid the expensive call to
dict_index_get_if_in_cache_low().

8688ef2... by Marko Mäkelä

Merge 10.1 to 10.2

d7a2401... by Marko Mäkelä

MDEV-20934 Infinite loop on innodb_fast_shutdown=0 with inconsistent change buffer

Due to a data corruption bug that may have occurred a long time earlier
(possibly involving physical backup and MySQL Bug #69122, which was
addressed in commit f166ec71b78fdf7a08ba413509cf00ad9e003b3c)
it seems possible that the InnoDB change buffer might end up containing
entries, while no buffered changes exist according to the change buffer
bitmap pages in the .ibd files.

ibuf_delete_recs(): New function, to be invoked on slow shutdown only.
Remove all buffered changes for a specific page.

ibuf_merge_or_delete_for_page(): If the change buffer bitmap is clean
and a slow shutdown is in progress, invoke ibuf_delete_recs().
We do not want to do that during normal operation, due to the additional
overhead that is involved. The bitmap page should be consistent with
the change buffer in the first place.

4e99e67... by Marko Mäkelä

Merge 5.5 into 10.1

5c3bbbd... by THIRUNARAYANAN BALATHANDAYUTHAPANI

MDEV-20987 InnoDB fails to start when fts table has FK relation

InnoDB: Assertion failure in file .../dict/dict0dict.cc line ...
InnoDB: Failing assertion: table->can_be_evicted

This fixes a regression that was caused by the fix of MDEV-20621
(commit a41d429765c7ddb528b9b438c68b25ff55d3bd55).
MySQL 5.6 (and MariaDB 10.0) introduced eviction of tables from
the InnoDB data dictionary cache. Tables that are connected to
FOREIGN KEY constraints or FULLTEXT INDEX are exempt of the eviction.
With the problematic change, a table that would already be exempt
from eviction due to FOREIGN KEY would cause the problem if there
also was a FULLTEXT INDEX defined on it.

dict_load_table(): Only prevent eviction if table->can_be_evicted holds.