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

Method AssignDiskQueue

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

Source from the content-addressed store, hash-verified

925 blacklisted_(false) {}
926
927int 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
938bool TmpFile::Blacklist(const ErrorMsg& msg) {
939 LOG(ERROR) << "Error for temporary file '" << path_ << "': " << msg.msg();

Callers 4

WriteMethod · 0.80
RetryWriteMethod · 0.80
TEST_FFunction · 0.80

Calls 1

AssignQueueMethod · 0.80

Tested by 2

TEST_FFunction · 0.64