| 2424 | |
| 2425 | |
| 2426 | void Query_cache::invalidate_by_MyISAM_filename(const char *filename) |
| 2427 | { |
| 2428 | DBUG_ENTER("Query_cache::invalidate_by_MyISAM_filename"); |
| 2429 | |
| 2430 | if (is_disabled()) |
| 2431 | DBUG_VOID_RETURN; |
| 2432 | |
| 2433 | /* Calculate the key outside the lock to make the lock shorter */ |
| 2434 | char key[MAX_DBKEY_LENGTH]; |
| 2435 | uint32 db_length; |
| 2436 | uint key_length= filename_2_table_key(key, filename, &db_length); |
| 2437 | THD *thd= current_thd; |
| 2438 | invalidate_table(thd,(uchar *)key, key_length); |
| 2439 | DBUG_VOID_RETURN; |
| 2440 | } |
| 2441 | |
| 2442 | /* Remove all queries from cache */ |
| 2443 |
no outgoing calls
no test coverage detected