diff options
author | unknown <monty@hundin.mysql.fi> | 2001-12-14 16:02:41 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-12-14 16:02:41 +0200 |
commit | c03330d584fd9c7f581d08df7a582ee76ec97d02 (patch) | |
tree | 63f5e7bab3c2b1c778016248af2350936a4c9763 /sql | |
parent | 8dca301f4bdad2b069bcdfacad17e8af8c064366 (diff) | |
download | mariadb-git-c03330d584fd9c7f581d08df7a582ee76ec97d02.tar.gz |
Removed not used functions from sql_cache
Added new tests to testsuite.
extra/resolveip.c:
Portabilit fix.
mysql-test/create-test-result:
Fix for new mysql-test-run
mysql-test/r/query_cache.result:
Updated benchmarks
mysql-test/t/query_cache-master.opt:
Updated benchmarks
mysql-test/t/query_cache.test:
Updated benchmarks
sql/sql_cache.cc:
Removed not used functions
sql/sql_cache.h:
Removed not used functions
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_cache.cc | 12 | ||||
-rw-r--r-- | sql/sql_cache.h | 2 |
2 files changed, 0 insertions, 14 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index 7f3bb97c7d6..387bca35d08 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -1737,18 +1737,6 @@ void Query_cache::invalidate_table(TABLE *table) invalidate_table(table_block); } -void Query_cache::invalidate_table_in_db(Query_cache_block *table_block, - char *db) -{ - /* - table key consist of data_base_name + '\0' + table_name +'\0'... - => we may use strcmp to compare database names. - */ - if (strcmp(db, (char*)(table_block->table()->db())) == 0) - invalidate_table(table_block); -} - - void Query_cache::invalidate_table(Query_cache_block *table_block) { Query_cache_block_table *list_root = table_block->table(0); diff --git a/sql/sql_cache.h b/sql/sql_cache.h index d04fc29a8d9..da7ada14f23 100644 --- a/sql/sql_cache.h +++ b/sql/sql_cache.h @@ -268,8 +268,6 @@ protected: Query_cache_block *query_block); void invalidate_table(TABLE_LIST *table); void invalidate_table(TABLE *table); - void invalidate_table_in_db(Query_cache_block *table_block, - char *db); void invalidate_table(Query_cache_block *table_block); my_bool register_all_tables(Query_cache_block *block, TABLE_LIST *tables_used, |