diff options
author | He Zhenxing <zhenxing.he@sun.com> | 2010-05-08 11:25:33 +0800 |
---|---|---|
committer | He Zhenxing <zhenxing.he@sun.com> | 2010-05-08 11:25:33 +0800 |
commit | 455f754e6ba4de3d3b527aad6ac317b7e5994b86 (patch) | |
tree | 988fc8110d8d9d14f34a21c313061c0b9ebfbc94 /sql/table.cc | |
parent | 31a79ec3c6237df2bc42f93528e41374e44d1055 (diff) | |
download | mariadb-git-455f754e6ba4de3d3b527aad6ac317b7e5994b86.tar.gz |
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.
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sql/table.cc b/sql/table.cc index 04d7b3a8d0a..bd6251b5743 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -297,13 +297,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 map id here. Instead we assign a value that is not used @@ -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; /* |