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

Function ConstructRemoteDirPath

be/src/runtime/tmp-file-mgr.cc:461–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461static string ConstructRemoteDirPath(const string& base_dir, const string& hostname,
462 const string& backend_id = "", const string& query_id = "") {
463 stringstream dir;
464 dir << base_dir << "/" << hostname;
465 if (!backend_id.empty()) {
466 dir << "/" << backend_id;
467 DCHECK(!query_id.empty());
468 dir << "_" << query_id;
469 }
470 return dir.str();
471}
472
473void TmpFileMgr::RemoveRemoteDirForHost(const string& dir, hdfsFS hdfs_conn) {
474 if (!FLAGS_remote_scratch_cleanup_on_start_stop) return;

Callers 3

AllocateRemoteSpaceMethod · 0.85

Calls 2

emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected