| 645 | } |
| 646 | |
| 647 | Status DataCache::Partition::CreateCacheFile() { |
| 648 | DCHECK(!trace_replay_); |
| 649 | lock_.DCheckLocked(); |
| 650 | const string& path = |
| 651 | JoinPathSegments(path_, CACHE_FILE_PREFIX + PrintId(GenerateUUID())); |
| 652 | unique_ptr<CacheFile> cache_file; |
| 653 | RETURN_IF_ERROR(CacheFile::Create(path, &cache_file)); |
| 654 | cache_files_.emplace_back(std::move(cache_file)); |
| 655 | LOG(INFO) << "Created cache file " << path; |
| 656 | return Status::OK(); |
| 657 | } |
| 658 | |
| 659 | Status DataCache::Partition::DeleteUntrackedFiles() const { |
| 660 | DCHECK(!trace_replay_); |
nothing calls this directly
no test coverage detected