| 776 | |
| 777 | |
| 778 | int 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 | /* |
no test coverage detected