maria:bb-10.4-MDEV-32673

Last commit made on 2023-11-08
Get this branch:
git clone -b bb-10.4-MDEV-32673 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.4-MDEV-32673
Repository:
lp:maria

Recent commits

87b7f0c... by Marko Mäkelä

MDEV-32673 Handle InnoDB binlog position recovery for RESET MASTER or binlog name change

ha_reset_binlog_pos(), trx_rseg_reset_binlog_pos(): Reset the
binlog file name and position to the specified one.
Store it in the first rollback segment (in the system tablespace),
and invalidate all other rollback segments as well as the
legacy information in the TRX_SYS page (from before
commit 947efe17ed8188ca4feef6deb0c2831a246b5c8f).

MYSQL_BIN_LOG::reset_logs(), init_server_components():
Invoke ha_reset_binlog_pos().

The test case was written by and the code co-developed with
Kristian Nielsen.

228b7e4... by Marko Mäkelä

MDEV-13626 Merge InnoDB test cases from MySQL 5.7

This imports and adapts a number of MySQL 5.7 test cases that are
applicable to MariaDB.

Some tests for old bug fixes are not that relevant because the code
has been refactored since then (especially starting with
MariaDB Server 10.6), and the tests would not reproduce the
original bug if the fix was reverted.

In the test innodb_fts.opt, there are many duplicate MATCH ranks, which
would make the results nondeterministic. The test was stabilized by
changing some LIMIT clauses or by adding sorted_result in those cases
where the purpose of a test was to show that no sorting took place
in the server.

In the test innodb_fts.phrase, MySQL 5.7 would generate FTS_DOC_ID that
are 1 larger than in MariaDB. In innodb_fts.index_table the difference is 2.
This is because in MariaDB, fts_get_next_doc_id() post-increments
cache->next_doc_id, while MySQL 5.7 pre-increments it.

Reviewed by: Thirunarayanan Balathandayuthapani

2447172... by Monty <email address hidden>

Ensure that process "State" is properly cleaned after query execution

In some cases "SHOW PROCESSLIST" could show "Reset for next command"
as State, even if the previous query had finished properly.

Fixed by clearing State after end of command and also setting the State
for the "Connect" command.

Other things:
- Changed usage of 'thd->set_command(COM_SLEEP)' to
  'thd->mark_connection_idle()'.
- Changed thread_state_info() to return "" instead of NULL. This is
  just a safety measurement and in line with the logic of the
  rest of the function.

01623ac... by Marko Mäkelä

Fix clang -Wtypedef-redefinition

f77a386... by Marko Mäkelä

MDEV-11816 fixup: Remove an orphan test file

fa81afd... by Alexey Botchkov

MDEV-27595 Backport SQL service, introduced by MDEV-19275.

Post-review fixes.

910a0dd... by Alexey Botchkov

MDEV-27295 Backport SQL service, introduced by MDEV-19275.

necessary functions added to the SQL SERVICE.

b080cff... by Alexey Botchkov

MDEV-27295 Backport SQL service, introduced by MDEV-19275.

ifdef fixed.

e2c90e3... by Alexey Botchkov

Fix to quiet the compiler on Windows.

624ad86... by Alexey Botchkov

MDEV-27595 Backport SQL service, introduced by MDEV-19275.

test_sql_service.test fixed.