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

Method DeleteExistingFiles

be/src/runtime/tuple-cache-mgr.cc:621–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621Status TupleCacheMgr::DeleteExistingFiles() const {
622 vector<string> entries;
623 RETURN_IF_ERROR(FileSystemUtil::Directory::GetEntryNames(cache_dir_, &entries, 0,
624 FileSystemUtil::Directory::EntryType::DIR_ENTRY_REG));
625 for (const string& entry : entries) {
626 if (entry.find(CACHE_FILE_PREFIX) == 0) {
627 const string file_path = JoinPathSegments(cache_dir_, entry);
628 KUDU_RETURN_IF_ERROR(kudu::Env::Default()->DeleteFile(file_path),
629 Substitute("Failed to delete old cache file $0", file_path));
630 LOG(INFO) << Substitute("Deleted old cache file $0", file_path);
631 }
632 }
633 return Status::OK();
634}
635
636void TupleCacheMgr::SyncFileToDisk(const string& cache_key) {
637 Cache::UniqueHandle pos = cache_->Lookup(cache_key);

Callers

nothing calls this directly

Calls 6

JoinPathSegmentsFunction · 0.85
DefaultClass · 0.85
SubstituteFunction · 0.85
OKFunction · 0.85
findMethod · 0.45
DeleteFileMethod · 0.45

Tested by

no test coverage detected