| 528 | } |
| 529 | |
| 530 | Status 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 | |
| 542 | string TupleCacheMgr::GetDebugDumpPath( |
| 543 | const string& sub_dir, const string& file_name, string* sub_dir_full_path) const { |