maria:bb-10.3-vicentiu

Last commit made on 2022-11-30
Get this branch:
git clone -b bb-10.3-vicentiu https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.3-vicentiu
Repository:
lp:maria

Recent commits

b527bfe... by Vicențiu Ciorbaru

MDEV-30023 Revoking Privilege on the Column Yields the Error

The change from MDEV-29465 exposed a flaw in replace_column_table
where again we were not properly updating the column-level bits.

replace_table_table was changed in MDEV-29465 to properly update
grant_table->init_cols, however replace_column_table still only
modified grant_column->rights when the GRANT_COLUMN already existed.

This lead to a missmatch between GRANT_COLUMN::init_rights and
GRANT_COLUMN::rights, *if* the GRANT_COLUMN already existed.

As an example:

GRANT SELECT (col1) ...
Here:
For col1
GRANT_COLUMN::init_rights and GRANT_COLUMN::rights are set to 1 (SELECT) in
replace_column_table.

GRANT INSERT (col1) ...
Here, without this patch GRANT_COLUMN::init_rights is still 1 and
GRANT_COLUMN::rights is 3 (SELECT_PRIV | INSERT_PRIV)

Finally, if before this patch, one does:

REVOKE SELECT (col1) ...

replace_table_table will see that init_rights loses bit 1 thus it
considers there are no more rights granted on that particular table.

This prompts the whole GRANT_TABLE to be removed via the first revoke,
when the GRANT_COLUMN corresponding to it should still have init_rights == 2.

By also updating replace_column_table to keep init_rights in sync
properly, the issue is resolved.

Reviewed by <email address hidden>

6c973be... by Anel Husakovic <email address hidden>

MDEV-28299: Server crashes in XINDXS::Range/CntIndexRange (Connect engine)

- Bug happens only in case when the range function on empty key single
column index (XINDEXS) is used.
- Solution is to return with empty result in this scenario.

Reviewed by: <>

9a95838... by Robin Newhouse

[MDEV-30002] Skip bad_startup_options test when running as root (#2344)

Commit 32158be added a new test `bad_startup_options`. This test fails
if run as root, which is common on many CI systems.

This test should include `not_as_root.inc` so it is skipped, just
like all other similar tests in MariaDB.

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer
Amazon Web Services, Inc.

499ef7b... by Marko Mäkelä

Add a global suppression for O_DIRECT failures

Fixes up commit b8ad6fbd95830b61d282abc1167300fff261be7e

b8ad6fb... by Monty <email address hidden>

Fixed warning from innodb.create_isl_with_direct if have_symlink is disabled

f208f6f... by Monty <email address hidden>

Safety fix

Ensure that all memory allocated by TABLE_LIST::change_refs_to_fields() is
in the same memory root!

f9c418c... by Monty <email address hidden>

Fixed the BUILD scripts to work outside of a git repository

5b275b4... by Monty <email address hidden>

Enable valgrind for replication test

The following tests are disabled when running --valgrding without --big:
- rpl.rpl_ssl
- rpl.rpl_semi_sync_event
- All encryption test (which includes have_file_key_management.inc)

112870d... by Christian Gonzalez <email address hidden>

MDEV-16735 Ensure mysql_upgrade works when changing alter_algorithm

MDEV-16735 describes how mysql_upgrade fails when alter_algorithm
is set to a value different than 'DEFAULT'/'COPY'. It was marked as
fixed by 0ee0868, but the fix didn't covered the possibility of having
the global value of alter_algorithm set to something different than
'DEFAULT'/'COPY'. To ensure that the upgrade process works properly
regardless the global value of alter_altorithm, this commit force it's
value to 'DEFAULT' (note the quotes) for the mysql_upgrade session.

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer
Amazon Web Services, Inc.

3d5ce04... by Anel Husakovic <email address hidden>

MDEV-29348 rpl.rpl_rewrt_db test fails with [gdb,manual-gdb] with wrong parsing

Reviewer: <email address hidden>
Closes PR #2244