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

Method GetTmpDirPath

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

Source from the content-addressed store, hash-verified

627}
628
629string TmpFileMgr::GetTmpDirPath(DeviceId device_id) const {
630 DCHECK(initialized_);
631 DCHECK_GE(device_id, 0);
632 DCHECK_LT(device_id, tmp_dirs_.size() + ((tmp_dirs_remote_ == nullptr) ? 0 : 1));
633 if (device_id < tmp_dirs_.size()) {
634 return tmp_dirs_[device_id]->path_;
635 } else {
636 return tmp_dirs_remote_->path_;
637 }
638}
639
640int64_t TmpFileMgr::TmpDirRemoteCtrl::CalcMaxReadBufferBytes() {
641 int64_t max_allow_bytes = 0;

Callers 5

CheckMetricsMethod · 0.80
TEST_FFunction · 0.80
TestWriteErrorMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by 5

CheckMetricsMethod · 0.64
TEST_FFunction · 0.64
TestWriteErrorMethod · 0.64