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

Method set_table_cache_key

sql/table.h:1068–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1066 */
1067
1068 void set_table_cache_key(char *key_buff, uint key_length)
1069 {
1070 table_cache_key.str= key_buff;
1071 table_cache_key.length= key_length;
1072 /*
1073 Let us use the fact that the key is "db/0/table_name/0" + optional
1074 part for temporary tables.
1075 */
1076 db.str= table_cache_key.str;
1077 db.length= strlen(db.str);
1078 table_name.str= db.str + db.length + 1;
1079 table_name.length= strlen(table_name.str);
1080 }
1081
1082
1083 /*

Callers 2

alloc_table_shareFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected