maria:bb-10.10-MDEV-32453

Last commit made on 2023-10-19
Get this branch:
git clone -b bb-10.10-MDEV-32453 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.10-MDEV-32453
Repository:
lp:maria

Recent commits

e0b3b49... by THIRUNARAYANAN BALATHANDAYUTHAPANI

MDEV-32453 Bulk insert fails to apply when trigger does insert operation

- InnoDB fails to apply the bulk operation when trigger initiated
another statement on the operated table which is same as
associated table. InnoDB should apply all bulk operation
before ending the bulk insert operation on the operated table.

c857259... by Marko Mäkelä

Merge 10.6 into 10.10

bf7c6fc... by Marko Mäkelä

MDEV-32511 Assertion !os_aio_pending_writes() failed

In MemorySanitizer builds of 10.10 and 10.11, we would rather often
have the assertion fail in innodb_init() during mariadb-backup --prepare.
The assertion could also fail during InnoDB startup, but less often.

Before commit 685d958e38b825ad9829be311f26729cccf37c46 in 10.8 the
log file cleanup after a successfully applied backup is different,
and the os_aio_pending_writes() assertion is in srv0start.cc.

IORequest::write_complete(): Invoke node->complete_write() before
releasing the page latch, so that a log checkpoint that is about to
execute concurrently will not miss a fdatasync() or fsync() on the
file, in case this was the first write since the last such call.

create_log_file(), srv_start(): Replace the debug assertion with
a debug check. For all intents and purposes, all writes could have
been completed but some write_io_callback() may not have invoked
io_slots::release() yet.

a49ebf7... by Monty <email address hidden>

Fixed memory leak when using histograms

This was introduced in last merge with 10.6
The reason is that 10.6 does not need anything special to free histograms
as everything is allocated on a memroot.
In 10.10 histograms is using the vector class, which has some problems:
- No automatic free
- No memory usage accounting
(we should at some point remove vector usage because of the above problem)

Fixed by expliciting freeing histograms when freeing TABLE_STATISTICS
objects.

0563106... by Marko Mäkelä

Merge 10.6 into 10.10

8f90594... by Yuchen Pei <email address hidden>

[fixup] Spider fixup after merge

- Remove some references to dead macros

515f8de... by Yuchen Pei <email address hidden>

Spider: update reason for disabling spider/bugfix.mdev_27239

It was disabled in the recent 10.6->10.10 merge.

ee5cadd... by THIRUNARAYANAN BALATHANDAYUTHAPANI

MDEV-28122 Optimize table crash while applying online log

- InnoDB fails to check the overflow buffer while applying
the operation to the table that was rebuilt. This is caused
by commit 3cef4f8f0fc88ae5bfae4603d8d600ec84cc70a9 (MDEV-515).

cca9547... by Monty <email address hidden>

Post fix for MDEV-32449

1c55445... by Monty <email address hidden>

MDEV-32449 Server crashes in Alter_info::add_stat_drop_index upon CREATE TABLE

Fixed missing initialization of Alter_info()

This could cause crashes in some create table like scenarios
where some generated indexes where automatically dropped.

I also added a test that we do not try to drop from index_stats for
temporary tables.