summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-06-09 00:58:05 +0300
committerunknown <bell@sanja.is.com.ua>2002-06-09 00:58:05 +0300
commit6a2eec80b0a47c67a8621d68fc447b170d2c0bce (patch)
treecb84872ae3c34ad83ac3336e53b65d86952ca6ca /sql/sql_class.cc
parentfb104d76b5a95cb7056288f4840776cfd5ee7899 (diff)
downloadmariadb-git-6a2eec80b0a47c67a8621d68fc447b170d2c0bce.tar.gz
removed unneeded table name pointer
transaction-live memory cleanup moved to ha_commit/ha_rollback fixed query cache validator to work correctly on systems that allocate unaligned dat sql/handler.cc: transaction-live memory cleanup moved to ha_commit/ha_rollback sql/sql_cache.cc: removed unneeded table name pointer fixed debug enter message fixed query cache validator to work correctly on systems that allocate unaligned data sql/sql_class.cc: removed unneeded table name pointer sql/sql_parse.cc: transaction-live memory cleanup moved to ha_commit/ha_rollback sql/table.h: removed unneeded table name pointer
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index c332181b410..84de7e6ad4a 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -345,11 +345,7 @@ CHANGED_TABLE_LIST* THD::changed_table_dup(TABLE *table)
ALIGN_SIZE(sizeof(CHANGED_TABLE_LIST)));
new_table->next = 0;
new_table->key_length = table->key_length;
- uint32 db_len = ((new_table->table_name =
- ::strmake(new_table->key, table->table_cache_key,
- table->key_length) + 1) - new_table->key);
- ::memcpy(new_table->key + db_len, table->table_cache_key + db_len,
- table->key_length - db_len);
+ ::memcpy(new_table->key, table->table_cache_key, table->key_length);
return new_table;
}