| 627 | } |
| 628 | |
| 629 | string 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 | |
| 640 | int64_t TmpFileMgr::TmpDirRemoteCtrl::CalcMaxReadBufferBytes() { |
| 641 | int64_t max_allow_bytes = 0; |