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

Method UploadComplete

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

Source from the content-addressed store, hash-verified

2063}
2064
2065void 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
2079void TmpWriteHandle::WriteComplete(const Status& write_status) {
2080 WriteDoneCallback cb;

Callers

nothing calls this directly

Calls 4

EnqueueTmpFilesPoolMethod · 0.80
pathMethod · 0.80
okMethod · 0.45

Tested by

no test coverage detected