mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#53189 Table map version unused and can be removed
MYSQL_BIN_LOG m_table_map_version member and it's associated functions were not used in the logic of binlogging and replication, this patch removed all related code. sql/log.cc: removed unused m_table_map_version variable and functions sql/log.h: removed unused m_table_map_version variable and functions sql/log_event.h: Removed unused LOG_EVENT_UPDATE_TABLE_MAP_VERSION_F flag sql/sql_class.cc: Removed unused LOG_EVENT_UPDATE_TABLE_MAP_VERSION_F flag sql/sql_load.cc: Removed unused LOG_EVENT_UPDATE_TABLE_MAP_VERSION_F flag sql/table.cc: removed unused table_map_version variable sql/table.h: removed unused table_map_version variable
This commit is contained in:
12
sql/table.cc
12
sql/table.cc
@ -296,13 +296,6 @@ TABLE_SHARE *alloc_table_share(TABLE_LIST *table_list, char *key,
|
||||
|
||||
share->version= refresh_version;
|
||||
|
||||
/*
|
||||
This constant is used to mark that no table map version has been
|
||||
assigned. No arithmetic is done on the value: it will be
|
||||
overwritten with a value taken from MYSQL_BIN_LOG.
|
||||
*/
|
||||
share->table_map_version= ~(ulonglong)0;
|
||||
|
||||
/*
|
||||
Since alloc_table_share() can be called without any locking (for
|
||||
example, ha_create_table... functions), we do not assign a table
|
||||
@ -366,11 +359,6 @@ void init_tmp_table_share(THD *thd, TABLE_SHARE *share, const char *key,
|
||||
share->path.length= share->normalized_path.length= strlen(path);
|
||||
share->frm_version= FRM_VER_TRUE_VARCHAR;
|
||||
|
||||
/*
|
||||
Temporary tables are not replicated, but we set up these fields
|
||||
anyway to be able to catch errors.
|
||||
*/
|
||||
share->table_map_version= ~(ulonglong)0;
|
||||
share->cached_row_logging_check= -1;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user