| 471 | } |
| 472 | |
| 473 | void TmpFileMgr::RemoveRemoteDirForHost(const string& dir, hdfsFS hdfs_conn) { |
| 474 | if (!FLAGS_remote_scratch_cleanup_on_start_stop) return; |
| 475 | DCHECK(hdfs_conn != nullptr); |
| 476 | const string hostlevel_dir = ConstructRemoteDirPath( |
| 477 | dir, ExecEnv::GetInstance()->configured_backend_address().hostname); |
| 478 | if (hdfsExists(hdfs_conn, hostlevel_dir.c_str()) == 0) { |
| 479 | hdfsDelete(hdfs_conn, hostlevel_dir.c_str(), 1); |
| 480 | LOG(INFO) << "Called to remove the host-level remote directory " << hostlevel_dir; |
| 481 | } |
| 482 | } |
| 483 | |
| 484 | void TmpFileMgr::RemoveRemoteDirForQuery(TmpFileGroup* file_group) { |
| 485 | if (tmp_dirs_remote_ == nullptr) return; |
no test coverage detected