maria:bb-10.3-MDEV-16951

Last commit made on 2022-12-02
Get this branch:
git clone -b bb-10.3-MDEV-16951 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.3-MDEV-16951
Repository:
lp:maria

Recent commits

53c41fc... by Angelique Sklavounos

MDEV-16951: This was caused by a race condition where the log rotation occurs before the Binlog_checkpoint is written to the binary log indicated in the error message. Fixed by ensuring Binlog_checkpoint is written before the binary log rotation.

cc86360... by midenok

MDEV-30112 ASAN errors in Item_ident::print / generate_partition_syntax

Like in MDEV-16110 we must release items allocated on thd->mem_root by
reopening the table.

MDEV-16290 relocated MDEV-16110 fix in 10.5 so it works for MDEV-28576
as well. 10.3 without MDEV-16290 now duplicates this fix.

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)