maria:bb-10.3-danielblack-MDEV-29015-my_seek-avoid-wsl8443

Last commit made on 2022-07-11
Get this branch:
git clone -b bb-10.3-danielblack-MDEV-29015-my_seek-avoid-wsl8443 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.3-danielblack-MDEV-29015-my_seek-avoid-wsl8443
Repository:
lp:maria

Recent commits

a79ce4a... by Daniel Black

MDEV-29015 innodb os_file_set_size WSL workaround

WSL wasn't keeping stack of renamed files
(https://github.com/microsoft/WSL/issues/8443)
resulting in the fstat calls in os_file_set_size returning
ENOENT and no fallocate fallback being possible.

Users reported MySQL was ok, and it used my_seek to
determine the size. We copy this concept here to avoid
the WSL bug.

0e9a255... by Sergey Petrunia

MDEV-28871: Assert ... failed in JOIN::dbug_verify_sj_inner_tables...

optimize_semi_joins() calls update_sj_state() to update semi-join
optimization state in the JOIN class.

greedy_search() algorithm considers different join prefixes,
and then picks one table to put into the join prefix.
Most of the semi-join optimization state is in the table's entry
in the join->positions[cur_prefix_size].

However, it also needs to call update_sj_state() to update the
semi-join optimization state in the JOIN class.

There is one exception, which is the cause of this bug: when we're
inside optimize_semi_join_nests() and are optimizing a subquery,
optimize_semi_joins() does nothing, it doesn't call update_sj_state().

greedy_search() must not do that either.

66c0673... by Vladislav Vaintroub

MDEV-28746 Wrong error code ER_BAD_DB_ERROR for long filenames

Add check for path length if CreateFile fails with ERROR_PATH_NOT_FOUND.

d6e80c2... by Alexander Barkov

MDEV-25492 BETWEEN clause returns incorrect results on quoted 64-bit ints

This problem was earlier fixed by the patch for MDEV-21445.

57f5c31... by Alexander Barkov

MDEV-21445 Strange/inconsistent behavior of IN condition when mixing numbers and strings

bdc1134... by Alexander Barkov

MDEV-29041 Redundant truncation warning on CAST(string_column AS DECIMAL)

6313702... by Sergei Golubchik

MDEV-26568 RPM logic prohibiting server major upgrade no longer works as expected

prevent %{VERSION} in the shell command to be expanded by rpmbuild

2f3f1cd... by Nayuta Yanagisawa

MDEV-26544 Assertion `part_share->auto_inc_initialized' failed in ha_partition::get_auto_increment on INSERT

The partition storage engine ignores return (error) values of
handler::info(). As a result, a query that should be aborted is
not aborted and then the server violates the assertion.

4bc7c03... by Nayuta Yanagisawa

MDEV-29011 Server crash in spider_db_open_item_cond with XOR operator

Item_func_xor and Item_cond are both derived class of Item_bool_func.
Spider converts *Item_func_xor to *Item_cond and then calls the member
function argument_list(), which Item_func_xor does not implement.

8c8bd4b... by Vladislav Vaintroub

Fix typo in appveyor.yml

The convention used for options in mtr are 2 underscores
Prior to this patch, the "parallel" option used only one underscore