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

Function tdc_share_is_cached

sql/table_cache.cc:778–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776
777
778int tdc_share_is_cached(THD *thd, const char *db, const char *table_name)
779{
780 char key[MAX_DBKEY_LENGTH];
781
782 if (unlikely(fix_thd_pins(thd)))
783 return -1;
784
785 if (lf_hash_search(&tdc_hash, thd->tdc_hash_pins, (uchar*) key,
786 tdc_create_key(key, db, table_name)))
787 {
788 lf_hash_search_unpin(thd->tdc_hash_pins);
789 return 1;
790 }
791 return 0;
792}
793
794
795/*

Callers 1

Calls 3

lf_hash_searchFunction · 0.85
tdc_create_keyFunction · 0.85
fix_thd_pinsFunction · 0.70

Tested by

no test coverage detected