maria:bb-11.4-all-builders

Last commit made on 2024-02-14
Get this branch:
git clone -b bb-11.4-all-builders https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-11.4-all-builders
Repository:
lp:maria

Recent commits

fe07ac3... by Sergei Golubchik

MDEV-31857 fix galera.MW-284

followup for abcd23add202

8dee23c... by Sergei Golubchik

MDEV-31857 fix galera.galera_var_notify_ssl_ipv6

it was able to enable --ssl-verify-server-cert if explicily requested,
now it can also disable it, if explicitly requested.

d6794aa... by Monty <email address hidden>

Improve error message in mysqltest when sync_with_master fails

In case of failure, the something like the following is now printed:

Slave position: file: binary.000004 position: 3647
Master position: file: binary.000004 position: 3647

18dfcfd... by Monty <email address hidden>

MDEV-31404 Implement binlog_space_limit

binlog_space_limit is a variable in Percona server used to limit the total
size of all binary logs.

This implementation is based on code from Percona server 5.7.

In MariaDB we decided to call the variable max-binlog-total-size to be
similar to max-binlog-size. This makes it easier to find in the output
from 'mariadbd --help --verbose'). MariaDB will also support
binlog_space_limit for compatibility with Percona.

Some internal notes to explain implementation notes:

- When running MariaDB does not delete binary logs that are either
  used by slaves or have active xid that are not yet committed.

Some implementation notes:

- max-binlog-total-size is by default 0 (no limit).
- max-binlog-total-size can be changed without server restart.
- Binlog file sizes are checked on startup, or if
  max-binlog-total-size is set to a value > 0, not for every log write.
  The total size of all binary logs is cached and dynamically updated
  when updating the binary log on binary log rotation.
- max-binlog-total-size is checked against existing log files during
  serverstart, binlog rotation, FLUSH LOGS, when writing to binary log
  or when max-binlog-total-size changes value.
- Option --slave-connections-needed-for-purge with 1 as default added.
  This allows one to ensure that we do not delete binary logs if there
  is less than 'slave-connections-needed-for-purge' connected.
  Without this option max-binlog-total-size would potentially delete
  binlogs needed by slaves on server startup or when a slave disconnects
  as there are then no connected slaves to protect active binlogs.
- PURGE BINARY LOGS TO ... will be executed as if
  slave-connectitons-needed-for-purge would be zero. In other words
  it will do the purge even if there is no slaves connected. If there
  are connected slaves working on the logs, these will be protected.
- If binary log is on and max-binlog-total_size <> 0 then the status
  variable 'Binlog_disk_use' shows the current size of all old binary
  logs + the state of the current one.
- Removed test of strcmp(log_file_name, log_info.log_file_name) in
  purge_logs_before_date() as this is tested in can_purge_logs()
- To avoid expensive calls of log_in_use() we cache the result for the
  last log that is in use by a slave. Future calls to can_purge_logs()
  for this binary log will be quickly detected and false will be returned
  until a slave starts working on a new log.
- Note that after a binary log rotation caused by max_binlog_size,
  the last log will not be purged directly as it is still in use
  internally. The next binary log write will purge binlogs if needed.

Reviewer:Kristian Nielsen <email address hidden>

9933a8c... by Sergei Golubchik

update C/C

2c445b5... by Sergei Golubchik

fix debian dependencies for mariadb-test

libnet-ssleay-perl wasn't auto-detected

eeb5cba... by Sergei Golubchik

MDEV-33326 Port Spider/ODBC from ES

Revert "Deb: Stop shipping mariadb-plugin-spider separately, include in server"

This reverts commit 9945d482af1d3e3eb241c96da9659d4cf5d56118.

9945d48... by Otto Kekäläinen

Deb: Stop shipping mariadb-plugin-spider separately, include in server

Instead of having a separate plugin, simply include Spider in the main
MariaDB Server package and let users manually enable on server installs
where they want to run it.

22e41da... by Nikita Malyavin

MDEV-32501 KEY_PERIOD_USAGE reveals information to unprivileged user

Restrict access to KEY_PERIOD_USAGE: show the constraint record iff any
non-select privilege on any table column is granted.

Also drop the unprivileged user in the end of test and add merge anchor.

5c2f8c0... by Nikita Malyavin

MDEV-32503 Queries from I_S.KEY_PERIOD_USAGE do not obey case-sensitivity

Set the correct values for idx_field1, idx_field2 (i.e. db and table name
fields) of ST_SCHEMA_TABLE instance.