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

Method SetDoneInternal

be/src/exec/hdfs-scan-node.cc:538–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538void HdfsScanNode::SetDoneInternal(const Status& status) {
539 // If the scan node is already in the done state, do nothing.
540 if (done()) return;
541 DCHECK(status_.ok());
542 done_.Store(true);
543 if (!status.ok()) status_ = status;
544 // TODO: Cancelling the RequestContext will wait on in-flight IO. We should
545 // investigate dropping the lock_ or restructuring this cancel.
546 if (reader_context_ != nullptr) reader_context_->Cancel();
547 thread_state_.Shutdown();
548}
549
550void HdfsScanNode::SetDone() {
551 unique_lock<timed_mutex> l(lock_);

Callers

nothing calls this directly

Calls 4

okMethod · 0.45
StoreMethod · 0.45
CancelMethod · 0.45
ShutdownMethod · 0.45

Tested by

no test coverage detected