diff options
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sql/table.cc b/sql/table.cc index 3696241fa1f..7eeeb09681a 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -1198,8 +1198,6 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write, uint ext_key_parts= 0; plugin_ref se_plugin= 0; const uchar *system_period= 0; - bool vtmd_used= false; - share->vtmd= false; bool vers_can_native= false; const uchar *extra2_field_flags= 0; size_t extra2_field_flags_length= 0; @@ -1302,17 +1300,6 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write, goto err; system_period = extra2; break; - case EXTRA2_VTMD: - if (vtmd_used) - goto err; - share->vtmd= *extra2; - if (share->vtmd) - { - share->table_category= TABLE_CATEGORY_LOG; - share->no_replicate= true; - } - vtmd_used= true; - break; case EXTRA2_FIELD_FLAGS: if (extra2_field_flags) goto err; @@ -7785,28 +7772,6 @@ void TABLE::vers_update_end() DBUG_ASSERT(0); } - -bool TABLE_LIST::vers_vtmd_name(String& out) const -{ - static const char *vtmd_suffix= "_vtmd"; - static const size_t vtmd_suffix_len= strlen(vtmd_suffix); - if (table_name.length > NAME_CHAR_LEN - vtmd_suffix_len) - { - my_printf_error(ER_VERS_VTMD_ERROR, "Table name is longer than %d characters", MYF(0), - int(NAME_CHAR_LEN - vtmd_suffix_len)); - return true; - } - out.set(table_name.str, table_name.length, table_alias_charset); - if (out.append(vtmd_suffix, vtmd_suffix_len + 1)) - { - my_message(ER_VERS_VTMD_ERROR, "Failed allocate VTMD name", MYF(0)); - return true; - } - out.length(out.length() - 1); - return false; -} - - /** Reset markers that fields are being updated */ |