| 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 | /* |
no outgoing calls
no test coverage detected