| 925 | blacklisted_(false) {} |
| 926 | |
| 927 | int TmpFile::AssignDiskQueue(bool is_local_buffer) const { |
| 928 | // The file paths of TmpFiles are absolute paths, doesn't support default fs. |
| 929 | if (is_local_buffer) { |
| 930 | // Assign a disk queue for a local buffer, which is associated with a remote file. |
| 931 | return file_group_->io_mgr_->AssignQueue(local_buffer_path_.c_str(), |
| 932 | /* disk_id */ -1, /* expected_local */ true, /* check_default_fs */ false); |
| 933 | } |
| 934 | return file_group_->io_mgr_->AssignQueue( |
| 935 | path_.c_str(), disk_id_, expected_local_, /* check_default_fs */ false); |
| 936 | } |
| 937 | |
| 938 | bool TmpFile::Blacklist(const ErrorMsg& msg) { |
| 939 | LOG(ERROR) << "Error for temporary file '" << path_ << "': " << msg.msg(); |