MCPcopy Create free account
hub / github.com/MariaDB/server / invalidate_by_MyISAM_filename

Method invalidate_by_MyISAM_filename

sql/sql_cache.cc:2426–2440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2424
2425
2426void 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

Calls

no outgoing calls

Tested by

no test coverage detected