mariadb/mysql-test/suite
Daniel Black 13e77930e6 MDEV-28263: mariadb-tzinfo-to-sql improve wsrep and binlog cases
The --skip-write-binlog message was confusing that it only had
an effect if the galera was enabled. There are uses beyond galera
so we apply SET SESSION SQL_LOG_BIN=0 as implied by the option
without being conditional on the wsrep status.

We also with --skip-write-binlog actually check the session @@WSREP_ON
variable rather than the global server variable.

Since 10.6, the wsrep_mode could replicate Aria and MyISAM, in which
case no change to innodb and back is needed.

By removing the conditions, we can use LOCK TABLES in a general case
improving the load speed of Aria (MDEV-23326), regardless of the
skip-write-binlog flag. The only case where we don't use LOCK TABLES is
when we are replicating via Innodb, because wsrep_on=1 and wsrep_mode
doesn't contain REPLICATE_ARIA{,MYISAM}. This uses an Innodb transaction
instead. When replicating via InnoDB we change the table engine type
back to what it was originally.

By removing the \d and other syntax that requires parsing by
the mariadb client, we can use the generated SQL more generally, like
in the embedded server.

We also save and restore the SQL_LOG_BIN and WSREP_ON session server
variables so this can be included in the same session as other data
without taking into changes in state.

Remove wsrep.mysql_tzinfo_to_sql_symlink{,_skip} tests as they offered
no additional coverage beyond main.mysql_tzinfo_to_sql_symlink (no
server testing was done).

Add galera.mariadb_tzinfo_to_sql to actually test the replication
of tzinfo data through galera.

The conditional executable comment around /*M!100602 ...
START TRANSACTION .. LOCK TABLES.. */ is so that we can provide tzinfo
files (MDEV-27113, MDBF-389) and in the case that a user uses it on a
pre-10.6 server version it will still work. Both START TRANSACTION and
LOCK TABLES are not supported in prepared statements in MariaDB versions
earlier than 10.6.2.

Reviewed by Brandon Nesterenko
2022-04-21 14:59:29 +10:00
..
archive Fix various spelling errors 2022-03-03 13:42:49 +11:00
atomic
binlog Merge 10.5 into 10.6 2022-03-29 16:16:21 +03:00
binlog_encryption
client
compat Merge 10.5 into 10.6 2022-03-29 16:16:21 +03:00
csv
encryption Merge 10.5 into 10.6 2022-04-15 21:02:10 +03:00
engines MDEV-4750 follow-up: Reduce disabling innodb_stats_persistent 2021-08-31 13:55:02 +03:00
federated Merge 10.4 into 10.5 2022-03-07 09:26:50 +02:00
funcs_1 Merge 10.5 into 10.6 2022-04-06 12:08:30 +03:00
funcs_2 MDEV-27819: func_2.xxx_charset skipped after renaming utf8 to utf8mb3 2022-03-24 20:30:04 +05:30
galera MDEV-28263: mariadb-tzinfo-to-sql improve wsrep and binlog cases 2022-04-21 14:59:29 +10:00
galera_3nodes Merge 10.5 into 10.6 2022-03-29 16:16:21 +03:00
galera_3nodes_sr Merge 10.5 into 10.6 2021-10-18 16:36:24 +03:00
galera_sr Merge 10.5 into 10.6 2022-03-29 16:16:21 +03:00
gcol Merge branch 10.5 into 10.6 2022-03-18 12:17:11 +11:00
handler
heap
innodb MDEV-28274 Assertion s <= READ_FIX failed in buf_page_t::set_state 2022-04-11 10:22:40 +03:00
innodb_fts Merge 10.5 into 10.6 2022-03-07 18:42:47 +03:00
innodb_gis Merge 10.5 into 10.6 2022-02-14 09:16:41 +02:00
innodb_i_s Merge 10.5 into 10.6 2022-04-12 09:26:02 +03:00
innodb_zip MDEV-28181 The innochecksum -w option was inadvertently removed 2022-03-28 11:35:10 +03:00
jp
json Merge branch '10.5' into 10.6 2022-02-03 17:01:31 +01:00
large_tests MDEV-18187 Aria engine: Redo phase failed with "error 192 when executing record redo_index_new_page" upon startup on a restored datadir 2021-12-15 16:28:01 +02:00
maria Merge 10.5 into 10.6 2022-02-23 16:19:45 +02:00
mariabackup Merge 10.5 into 10.6 2022-04-06 12:08:30 +03:00
mtr/t
mtr2
multi_source
optimizer_unfixed_bugs
parts MDEV-28079 Shutdown hangs after altering innodb partition fts table 2022-03-16 19:20:27 +05:30
perfschema Merge 10.5 into 10.6 2022-04-12 09:26:02 +03:00
perfschema_stress
period
plugins Merge branch '10.5' into 10.6 2022-02-03 17:01:31 +01:00
roles Merge 10.5 into 10.6 2021-10-21 16:06:34 +03:00
rpl Merge 10.5 into 10.6 2022-04-06 12:08:30 +03:00
s3 Merge 10.5 into 10.6 2021-10-05 09:21:34 +03:00
sql_sequence Merge 10.5 into 10.6 2022-04-06 12:08:30 +03:00
storage_engine
stress
sys_vars MDEV-25975: Merge 10.5 into 10.6 2022-04-06 12:45:14 +03:00
sysschema 10.6 tests for MDEV-26507 Assertion `tmp != ((long long) 0x8000000000000000LL)' failed in TIME_from_longlong_datetime_packed 2022-04-10 14:46:24 +04:00
unit Merge 10.2 into 10.3 2021-10-21 17:39:34 +03:00
vcol Merge branch '10.5' into 10.6 2022-02-03 17:01:31 +01:00
versioning Merge 10.5 into 10.6 2022-04-06 12:08:30 +03:00
wsrep MDEV-28263: mariadb-tzinfo-to-sql improve wsrep and binlog cases 2022-04-21 14:59:29 +10:00