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

Method ScheduleContext

be/src/runtime/io/request-context.cc:823–830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821}
822
823void RequestContext::PerDiskState::ScheduleContext(const unique_lock<mutex>& context_lock,
824 RequestContext* context, int disk_id) {
825 DCHECK(context_lock.mutex() == &context->lock_ && context_lock.owns_lock());
826 if (is_on_queue_.Load() == 0 && !done_) {
827 is_on_queue_.Store(1);
828 disk_queue_->EnqueueContext(context);
829 }
830}
831
832void RequestContext::IncrementDiskThreadAfterDequeue(int disk_id) {
833 disk_states_[disk_id].IncrementDiskThreadAfterDequeue();

Callers 5

CancelMethod · 0.80
AddRangeToDiskMethod · 0.80
GetNextUnstartedRangeMethod · 0.80
GetNextRequestRangeMethod · 0.80
ScheduleScanRangeMethod · 0.80

Calls 5

owns_lockMethod · 0.80
EnqueueContextMethod · 0.80
mutexMethod · 0.45
LoadMethod · 0.45
StoreMethod · 0.45

Tested by

no test coverage detected