1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

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
This commit is contained in:
unknown
2002-06-09 00:58:05 +03:00
parent fb104d76b5
commit 6a2eec80b0
5 changed files with 13 additions and 11 deletions

View File

@@ -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;
}