Last commit made on 2019-08-20
Get this branch:
git clone -b bb-10.4-galera

Branch merges

Branch information


Recent commits

7b4de10... by Jan Lindström on 2019-08-20

MDEV-20378: Galera uses uninitialized memory

Problem was that wsrep thread argument was deleted on wrong
place. Furthermore, scan method incorrectly used unsafe c_ptr().
Finally, fixed wsrep thread initialization to correctly set
up thread_id and pass correct argument to functions and
fix signess problem causing compiler errors.

c5bc0ce... by Julius Goryavsky <email address hidden> on 2019-07-30

MDEV-20185: Windows: Use of uninitialized value $bpath in string eq

The execution of mtr in the Windows environment fails due to
the fact that the new code from MDEV-18565 does not take into
account the need to add the ".exe" extension to the names of
executable files when searching for pre-requisites that are
needed to run SST scripts (especially when using mariabackup)
and when searching paths to some other Galera utilities.
This patch fixes this flaw.

Also adding paths to the PATH environment variable is now
done with the correct delimiter character.

89fb295... by Julius Goryavsky <email address hidden> on 2019-07-30

MDEV-18863: Galera SST scripts can't read [mysqldN] option groups

Some users and some scripts (for example, use special
option groups with names like [mysqld1], [mysqld2], ..., [mysqldN].

But SST scripts can't currently fully support these option groups.
The only option group-related value it gets from the server is
--defaults-group-suffix, if that option was set for mysqld when
the server was started.

However, the SST scripts does not get told by the server to read
these option groups, so this means that the SST script will fail
to read options like innodb-data-home-dir when it is in a option
group like [mysqld1]...[mysqldN].

Moreover, SST scripts ignore many parameters that can be passed
to them explicitly and cannot transfer them further, for example,
to the input of mariabackup utility. Ideally, we want to transfer
all the parameters of the original mysqld call to utilities such
as mariabackup, however the SST script does not receive these
parameters from the server and therefore cannot transfer them to

To correct these shortcomings, we need to transfer to the scripts
all of the parameters of the original mysqld call, and in the SST
scripts themselves provide for the transfer all of these parameters
to utilities such as mariabackup. To prevent these parameters from
mixing with the script's own parameters, they should be transferred
to SST script after the special option "--mysqld-args", followed by
the string argument with the original parameters, as it received by
the mysqld call at the time of launch (further all these parameters
will be passed to mariabackup, for example).

In addition, the SST scripts themselves must be refined so that
they can read the parameters from the user-selected group, not just
from the global mysqld configuration group. And also so that they
can receive the parameters (which important for their work) as
command-line arguments.

fcae2a6... by Marko Mäkelä on 2019-08-19

MDEV-20383 Use of uninitialized value in Datafile::find_space_id() for ROW_FORMAT=COMPRESSED

Datafile::find_space_id(): Fix a regression that was introduced
in c0f47a4a58424c621204dacb8016a94b66cb2bce for MDEV-12026.
Because the function buf_page_is_corrupted() now determines
the physical page size from the fsp_flags, our buffer size must
agree with the fsp_flags.

buf_page_is_corrupted(): Use the correct accessor
fil_space_t::zip_size() for convering the tablespace flags.
ROW_FORMAT=COMPRESSED files never use innodb_checksum_algorithm=full_crc32.

52e2762... by Alexander Barkov on 2019-08-19

MDEV-19961 MIN(timestamp_column) returns a wrong result in a GROUP BY query

850bf33... by Sergey Petrunia on 2019-08-19

MDEV-20374: innodb.innodb_mysql fails sporadically in BB

Stabilize the test:
- replace Rows column in EXPLAIN output for one query
- Use EITS statistics for another query (in that testcase, the
  query must use LooseScan)

4d53825... by varun on 2019-08-16

MDEV-20349: Assertion `to_len >= 8' failed in convert_to_printable

Use convert_to_printable function to write only non-empty ranges to the optimizer trace

c221bcd... by Marko Mäkelä on 2019-08-16

Merge 10.3 into 10.4

395e1dc... by Marko Mäkelä on 2019-08-16

Merge 10.2 into 10.3

fe6eac0... by Marko Mäkelä on 2019-08-16

MDEV-19200: shutdown timeout on innodb.undo_truncate_recover

Optimize the test by dropping the table early and by using only
one undo log thread, so that purge will be doing more useful work
and less busy work of suspending and resuming the worker threads.

The test used to cause shutdown timeout on 10.4 on buildbot, and
for me locally when using --mysqld=--innodb-sync-debug.
With these tweaks, it passes for me with --mysqld=--innodb-sync-debug.