maria:knielsen_mdev32673

Last commit made on 2023-11-14
Get this branch:
git clone -b knielsen_mdev32673 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
knielsen_mdev32673
Repository:
lp:maria

Recent commits

37b6359... by Kristian Nielsen

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

Another attempt, to do most of what Marko's solution does without
requiring a new handlerton call: Compare each binlog position against
the previous one, and reset all old entries if the position moves
backwards.

Does not work though, it asserts in multiple places about pages not
marked as modified (IIUC) during the reset of commit processing. Also,
even if the mark-as-modified could be added, I'n not sure what the
consequences will be of trying to modify all rseg headers in the final
mtr during commit-to-memory. How would the locking work, if multiple
threads would try to do this simulaneosly? (though that might not be
possible due to LOCK_commit_ordered). Or could there be other locking
problems?

Signed-off-by: Kristian Nielsen <email address hidden>

d459c00... by Kristian Nielsen

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

Add test cases.

Signed-off-by: Kristian Nielsen <email address hidden>

7da060b... 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
pre-10.3.5 legacy information in the TRX_SYS page.

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

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.