maria:bb-10.5-aria

Last commit made on 2020-05-23
Get this branch:
git clone -b bb-10.5-aria https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.5-aria
Repository:
lp:maria

Recent commits

627c034... by Monty <email address hidden>

Fixed failure in sysvars_server_embedded,32bit

fc8359f... by Monty <email address hidden>

Fixed failure in flush_read_lock.test

The failure was:
mysqltest: At line 1737: query 'reap' failed: 1397: XAER_NOTA: Unknown XID

The bug was in the test case int that it executed REAP XA COMMIT before
the connection had truly disconnected

c779ef2... by Monty <email address hidden>

Fixed error in galera_vote_rejoin_ddl

The bug was that sometimes one get check errors like:
-AUTO_INCREMENT_OFFSET 4
+AUTO_INCREMENT_OFFSET 3

f4ddde0... by Monty <email address hidden>

Only apply wsrep_trx_fragment_size to InnoDB tables

MDEV-22617 Galera node crashes when trying to log to slow_log table in
streaming replication mode

Other things:
- Changed name of wsrep_after_row(two arguments) to
  wsrep_after_row_internal(one argument) to not depended on the
  function signature with unused arguments.

c4bf4b7... by Monty <email address hidden>

Fixed access to undefined memory found by valgrind and MSAN

When my_vsnprintf() is patched, the code protected disabled with
'WAITING_FOR_BUGFIX_TO_VSPRINTF' should be enabled again. Also all %b
formats in this patch should be revert to %s again

dcc0baf... by Monty <email address hidden>

Don't print "Trying to delete tablespace several 10x times per second"

Now this InnoDB message is printed after one second of stalled operations
and then every 10 seconds

4ea171f... by Monty <email address hidden>

Fixed compiler warnings from gcc and clang 5.0.1

9bf479b... by Monty <email address hidden>

Update galera to work with independent sub transactions

4102f15... by Monty <email address hidden>

Aria will now register it's transactions

MDEV-22531 Remove maria::implicit_commit()
MDEV-22607 Assertion `ha_info->ht() != binlog_hton' failed in
           MYSQL_BIN_LOG::unlog_xa_prepare

From the handler point of view, Aria now looks like a transactional
engine. One effect of this is that we don't need to call
maria::implicit_commit() anymore.

This change also forces the server to call trans_commit_stmt() after doing
any read or writes to system tables. This work will also make it easier
to later allow users to have system tables in other engines than Aria.

To handle the case that Aria doesn't support rollback, a new
handlerton flag, HTON_NO_ROLLBACK, was added to engines that has
transactions without rollback (for the moment only binlog and Aria).

Other things
- Moved freeing of MARIA_SHARE to a separate function as the MARIA_SHARE
  can be still part of a transaction even if the table has closed.
- Changed Aria checkpoint to use the new MARIA_SHARE free function. This
  fixes a possible memory leak when using S3 tables
- Changed testing of binlog_hton to instead test for HTON_NO_ROLLBACK
- Removed checking of has_transaction_manager() in handler.cc as we can
  assume that as the transaction was started by the engine, it does
  support transactions.
- Added new class 'start_new_trans' that can be used to start indepdendent
  sub transactions, for example while reading mysql.proc, using help or
  status tables etc.
- open_system_tables...() and open_proc_table_for_Read() doesn't anymore
  take a Open_tables_backup list. This is now handled by 'start_new_trans'.
- Split thd::has_transactions() to thd::has_transactions() and
  thd::has_transactions_and_rollback()
- Added handlerton code to free cached transactions objects.
  Needed by InnoDB.

squash! 2ed35999f2a2d84f1c786a21ade5db716b6f1bbc

d1d4726... by Monty <email address hidden>

Change THD->transaction to a pointer to enable multiple transactions

All changes (except one) is of type
thd->transaction. -> thd->transaction->

thd->transaction points by default to 'thd->default_transaction'
This allows us to 'easily' have multiple active transactions for a
THD object, like when reading data from the mysql.proc table