| 2063 | } |
| 2064 | |
| 2065 | void TmpWriteHandle::UploadComplete(TmpFile* tmp_file, const Status& upload_status) { |
| 2066 | if (upload_status.ok()) { |
| 2067 | // If uploaded, the local buffer is available to be evicted, so enqueue it to the |
| 2068 | // pool. |
| 2069 | DCHECK(tmp_file != nullptr); |
| 2070 | TmpFileGroup* file_group = tmp_file->file_group_; |
| 2071 | file_group->tmp_file_mgr_->EnqueueTmpFilesPool( |
| 2072 | file_group->FindTmpFileSharedPtr(tmp_file), |
| 2073 | file_group->tmp_file_mgr_->GetRemoteTmpFileBufferPoolLifo()); |
| 2074 | } else { |
| 2075 | LOG(WARNING) << "Upload temporary file: '" << tmp_file->path() << " failed"; |
| 2076 | } |
| 2077 | } |
| 2078 | |
| 2079 | void TmpWriteHandle::WriteComplete(const Status& write_status) { |
| 2080 | WriteDoneCallback cb; |
nothing calls this directly
no test coverage detected