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

Function tdc_create_key

sql/table_cache.h:107–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105*/
106
107inline uint tdc_create_key(char *key, const char *db, const char *table_name)
108{
109 /*
110 In theory caller should ensure that both db and table_name are
111 not longer than NAME_LEN bytes. In practice we play safe to avoid
112 buffer overruns.
113 */
114 return (uint) (strmake(strmake(key, db, NAME_LEN) + 1, table_name,
115 NAME_LEN) - key + 1);
116}
117#endif /* TABLE_CACHE_H_INCLUDED */

Callers 5

tdc_lock_shareFunction · 0.85
tdc_share_is_cachedFunction · 0.85
find_locked_tableFunction · 0.85

Calls 1

strmakeFunction · 0.85

Tested by

no test coverage detected