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

Method CreateDebugDumpSubdir

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

Source from the content-addressed store, hash-verified

528}
529
530Status TupleCacheMgr::CreateDebugDumpSubdir(const string& sub_dir) {
531 DCHECK(!sub_dir.empty());
532 bool path_exists = false;
533 std::lock_guard<std::mutex> l(debug_dump_subdir_lock_);
534 // Try to create the subdir if it doesn't already exist.
535 RETURN_IF_ERROR(FileSystemUtil::PathExists(sub_dir, &path_exists));
536 if (!path_exists) {
537 RETURN_IF_ERROR(FileSystemUtil::CreateDirectory(sub_dir));
538 }
539 return Status::OK();
540}
541
542string TupleCacheMgr::GetDebugDumpPath(
543 const string& sub_dir, const string& file_name, string* sub_dir_full_path) const {

Callers 1

OpenMethod · 0.80

Calls 2

OKFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected