mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user