mariadb/mysql-test/suite/funcs_1/r
Monty 25b5c63905 MDEV-33856: Alternative Replication Lag Representation via Received/Executed Master Binlog Event Timestamps
This commit adds 3 new status variables to 'show all slaves status':

- Master_last_event_time ; timestamp of the last event read from the
  master by the IO thread.
- Slave_last_event_time ; Master timestamp of the last event committed
  on the slave.
- Master_Slave_time_diff: The difference of the above two timestamps.

All the above variables are NULL until the slave has started and the
slave has read one query event from the master that changes data.

- Added information_schema.slave_status, which allows us to remove:
   - show_master_info(), show_master_info_get_fields(),
     send_show_master_info_data(), show_all_master_info()
   - class Sql_cmd_show_slave_status.
   - Protocol::store(I_List<i_string_pair>* str_list) as it is not
     used anymore.
- Changed old SHOW SLAVE STATUS and SHOW ALL SLAVES STATUS to
  use the SELECT code path, as all other SHOW ... STATUS commands.

Other things:
- Xid_log_time is set to time of commit to allow slave that reads the
  binary log to calculate Master_last_event_time and
  Slave_last_event_time.
  This is needed as there is not 'exec_time' for row events.
- Fixed that Load_log_event calculates exec_time identically to
  Query_event.
- Updated RESET SLAVE to reset Master/Slave_last_event_time
- Updated SQL thread's update on first transaction read-in to
  only update Slave_last_event_time on group events.
- Fixed possible (unlikely) bugs in sql_show.cc ...old_format() functions
  if allocation of 'field' would fail.

Reviewed By:
Brandon Nesterenko <brandon.nesterenko@mariadb.com>
Kristian Nielsen <knielsen@knielsen-hq.org>
2024-07-25 08:57:27 -06:00
..
charset_collation.result
innodb_bitdata.result
innodb_cursors.result
innodb_func_view.result
innodb_storedproc_02.result
innodb_storedproc_03.result
innodb_storedproc_06.result
innodb_storedproc_07.result
innodb_storedproc_08.result
innodb_storedproc_10.result
innodb_trig_03.result
innodb_trig_03e.result
innodb_trig_08.result
innodb_trig_09.result
innodb_trig_0102.result
innodb_trig_0407.result
innodb_trig_1011ext.result
innodb_trig_frkey.result
innodb_views.result
is_basics_mixed.result
is_character_sets.result
is_check_constraints.result
is_cml_innodb.result
is_cml_memory.result
is_cml_myisam.result
is_coll_char_set_appl.result
is_collations.result
is_column_privileges.result
is_column_privileges_is_mysql_test.result
is_columns.result
is_columns_innodb.result
is_columns_is.result
is_columns_is_embedded.result
is_columns_memory.result
is_columns_myisam.result
is_columns_myisam_embedded.result
is_columns_mysql.result
is_columns_mysql_embedded.result
is_engines.result
is_engines_archive.result
is_engines_blackhole.result
is_engines_csv.result
is_engines_federated.result
is_engines_innodb.result
is_engines_memory.result
is_engines_merge.result
is_engines_myisam.result
is_events.result
is_key_column_usage.result
is_key_column_usage_embedded.result
is_routines.result
is_routines_embedded.result
is_schema_privileges.result
is_schema_privileges_is_mysql_test.result
is_schemata.result
is_schemata_embedded.result
is_schemata_is_mysql_test.result
is_statistics.result
is_statistics_is.result
is_statistics_mysql.result
is_statistics_mysql_embedded.result
is_table_constraints.result
is_table_constraints_is.result
is_table_constraints_mysql.result
is_table_constraints_mysql_embedded.result
is_table_privileges.result
is_tables.result
is_tables_embedded.result
is_tables_innodb.result
is_tables_is.result
is_tables_is_embedded.result
is_tables_memory.result
is_tables_myisam.result
is_tables_myisam_embedded.result
is_tables_mysql.result
is_tables_mysql_embedded.result
is_triggers.result
is_triggers_embedded.result
is_user_privileges.result
is_views.result
is_views_embedded.result
memory_bitdata.result
memory_cursors.result
memory_func_view.result
memory_storedproc_02.result
memory_storedproc_03.result
memory_storedproc_06.result
memory_storedproc_07.result
memory_storedproc_08.result
memory_storedproc_10.result
memory_trig_03.result
memory_trig_03e.result
memory_trig_08.result
memory_trig_09.result
memory_trig_0102.result
memory_trig_0407.result
memory_trig_1011ext.result
memory_views.result
myisam_bitdata.result
myisam_cursors.result
myisam_func_view.result
myisam_storedproc_02.result
myisam_storedproc_03.result
myisam_storedproc_06.result
myisam_storedproc_07.result
myisam_storedproc_08.result
myisam_storedproc_10.result
myisam_trig_03.result
myisam_trig_03e.result
myisam_trig_08.result
myisam_trig_09.result
myisam_trig_0102.result
myisam_trig_0407.result
myisam_trig_1011ext.result
myisam_views-big.result
processlist_priv_no_prot.result
processlist_priv_ps.result
processlist_val_no_prot.result
processlist_val_ps.result
row_count_func.result
storedproc.result