MCPcopy Create free account
hub / github.com/apache/impala / CreateCacheFile

Method CreateCacheFile

be/src/runtime/io/data-cache.cc:647–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647Status 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
659Status DataCache::Partition::DeleteUntrackedFiles() const {
660 DCHECK(!trace_replay_);

Callers

nothing calls this directly

Calls 7

JoinPathSegmentsFunction · 0.85
PrintIdFunction · 0.85
GenerateUUIDFunction · 0.85
CreateClass · 0.85
moveFunction · 0.85
OKFunction · 0.85
DCheckLockedMethod · 0.80

Tested by

no test coverage detected