maria:bb-10.4-mdev22401

Last commit made on 2020-04-28
Get this branch:
git clone -b bb-10.4-mdev22401 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.4-mdev22401
Repository:
lp:maria

Recent commits

05bf5c0... by Sergey Petrunia

MDEV-22401: Optimizer trace: multi-component range is not printed correctly

KEY_MULTI_RANGE::range_flag does not have correct flag bits for
per-endpoint flags (NEAR_MIN, NEAR_MAX, NO_MIN_RANGE, NO_MAX_RANGE).
It only has bits for flags that describe both endpoints.
So
- Document this.
- Switch optimizer trace to using {start|end}_key.flag values, instead.
  This fixes the bug.
- Switch records_in_column_ranges() to doing that too. (This used to
  work, because KEY_MULTI_RANGE::range_flag had correct flag value
  for the last key component, and EITS only uses one-component
  pseudo-indexes)

503fd21... by Sergei Golubchik

fix the test for windows

b634469... by Marko Mäkelä

Merge 10.3 into 10.4

3568fad... by Marko Mäkelä

Merge 10.2 into 10.3

581df0d... by Marko Mäkelä

MDEV-7962: Follow-up fix for 10.2

dict_stats_update_if_needed(): Replace the parameter THD*
with const trx_t& so that trx_t::is_wsrep() can be invoked
instead of the more expensive wsrep_on().

Replace also other occurrences of wsrep_on() with trx_t::is_wsrep().

f7437d8... by Marko Mäkelä

Flag a result dependency on PLUGIN_PERFSCHEMA

2e12d47... by Marko Mäkelä

Merge 10.2 into 10.3

c06845d... by Marko Mäkelä

Merge 10.1 into 10.2

edbdfc2... by Marko Mäkelä

MDEV-7962 wsrep_on() takes 0.14% in OLTP RO

The function wsrep_on() was being called rather frequently
in InnoDB and XtraDB. Let us cache it in trx_t and invoke
trx_t::is_wsrep() instead.

innobase_trx_init(): Cache trx->wsrep = wsrep_on(thd).

ha_innobase::write_row(): Replace many repeated calls to current_thd,
and test the cheapest condition first.

6dab094... by Sergei Golubchik

MDEV-20257 Server crashes in Grant_table_base::init_read_record upon crash-upgrade

when opening the `user` table separately, reset `thd->open_tables`
for the duration of open, otherwise auto-repair fallback-and-retry
will close *all* tables (but reopen only `user`)