| 459 | } |
| 460 | |
| 461 | static 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 | |
| 473 | void TmpFileMgr::RemoveRemoteDirForHost(const string& dir, hdfsFS hdfs_conn) { |
| 474 | if (!FLAGS_remote_scratch_cleanup_on_start_stop) return; |
no test coverage detected