maria:bb-10.4-MDEV-30838-galera

Last commit made on 2023-05-02
Get this branch:
git clone -b bb-10.4-MDEV-30838-galera https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.4-MDEV-30838-galera
Repository:
lp:maria

Recent commits

1c0200c... by Julius Goryavsky <email address hidden>

MDEV-29755 correction: running wsrep_replicate_myisam_basic test with wsrep enabled

40479f3... by Julius Goryavsky <email address hidden>

wsrep-lib external submodule update

164b375... by Daniele Sciascia <email address hidden>

MDEV-30838 Assertion `m_thd == _current_thd()'

- Update wsrep-lib which contains fix for the assertion
- Fix error handling for appending fragment to streaming log,
  make sure tables are closed after rollback.

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

684e77d... by sara <email address hidden>

MDEV-30414 sporadic failures with galera var retry autocommit

changed tast case 2 to be deterministic

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

af16953... by =?utf-8?q?Jan_Lindstr=C3=B6m?= <email address hidden>

MDEV-29775 : Assertion `0' failed in void Protocol::end_statement() when adding data to the MyISAM table after setting wsrep_mode=replicate_myisam

Firstly, variables wsrep_forced_binlog_format, wsrep_replicate_myisam
should not be able to set if wsrep_on=OFF.

Secondly, if wsrep_replicate_myisam=ON we allow wsrep_forced_binlog_format
to be [DEFAULT|ROW].

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

ddcc9d2... by Alexander Barkov

MDEV-31153 New methods Schema::make_item_func_* for REPLACE, SUBSTRING, TRIM

Adding virtual methods to class Schema:

  make_item_func_replace()
  make_item_func_substr()
  make_item_func_trim()

This is a non-functional preparatory change for MDEV-27744.

2e74f9d... by Alexander Barkov

Adding "const" qualifiers to a few trivial Lex_input_string methods

1963a87... by Angelique Sklavounos

MDEV-30221: Move environmental macros to before master-slave
The fix was introduced, along with re-ordering to do other macros that check test environment capabilities before master/slave is set up.

85cc831... by Sergey Petrunia

MDEV-31067: selectivity_from_histogram >1.0 for a DOUBLE_PREC_HB histogram

Variant #2.

When Histogram::point_selectivity() sees that the point value of interest
falls into one bucket, it tries to guess whether the bucket has many
different (unpopular) values or a few popular values. (The number of
rows is fixed, as it's a Height-balanced histogram).
The basis for this guess is the "width" of the value range the bucket
covers. Buckets covering wider value ranges are assumed to contain
values with proportionally lower frequencies.

This is just a [brave] guesswork. For a very narrow bucket, it may
produce an estimate that's larger than total #rows in the bucket
or even in the whole table.

Remove the guesswork and replace it with basic logic: return
either the per-table average selectivity of col=const, or selectivity
of one bucket, whichever is lower.

bc97057... by Sergei Golubchik

MDEV-22756 SQL Error (1364): Field 'DB_ROW_HASH_1' doesn't have a default value

exclude generated columns from the "has default value" check