| 556 | } |
| 557 | |
| 558 | string TupleCacheMgr::GetFragmentIdForTupleCache(const string& cache_key) { |
| 559 | std::lock_guard<std::mutex> l(debug_dump_lock_); |
| 560 | auto iter = debug_dump_caches_metadata_.find(cache_key); |
| 561 | if (iter == debug_dump_caches_metadata_.end()) { |
| 562 | return string(); |
| 563 | } |
| 564 | return iter->second.fragment_id; |
| 565 | } |
| 566 | |
| 567 | void TupleCacheMgr::RemoveMetadataForTupleCache(const string& cache_key) { |
| 568 | std::lock_guard<std::mutex> l(debug_dump_lock_); |