| 87 | }; |
| 88 | |
| 89 | inline void DeleteCacheFiles(std::map<std::string, std::shared_ptr<Cache>> const& cache_info) { |
| 90 | for (auto const& kv : cache_info) { |
| 91 | CHECK(kv.second); |
| 92 | auto n = kv.second->ShardName(); |
| 93 | if (kv.second->OnHost()) { |
| 94 | continue; |
| 95 | } |
| 96 | TryDeleteCacheFile(n); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | [[nodiscard]] inline std::string MakeId(std::string prefix, void const* ptr) { |
| 101 | std::stringstream ss; |
no test coverage detected