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

Method CreateTmpFileBufferPoolThread

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

Source from the content-addressed store, hash-verified

428}
429
430Status TmpFileMgr::CreateTmpFileBufferPoolThread(MetricGroup* metrics) {
431 DCHECK(metrics != nullptr);
432 tmp_dirs_remote_ctrl_.tmp_file_pool_.reset(new TmpFileBufferPool(this));
433 std::unique_ptr<Thread> t;
434 RETURN_IF_ERROR(Thread::Create("tmp-file-pool", "work-loop(TmpFileSpaceReserve Worker)",
435 &TmpFileBufferPool::TmpFileSpaceReserveThreadLoop,
436 tmp_dirs_remote_ctrl_.tmp_file_pool_.get(), &t));
437 tmp_dirs_remote_ctrl_.tmp_file_mgr_thread_group_.AddThread(move(t));
438 int64_t ONE_HOUR_IN_NS = 60L * 60L * NANOS_PER_SEC;
439 tmp_dirs_remote_ctrl_.tmp_file_pool_->dequeue_timer_metric_ =
440 metrics->RegisterMetric(new HistogramMetric(
441 MetricDefs::Get(TMP_FILE_BUFF_POOL_DEQUEUE_DURATIONS), ONE_HOUR_IN_NS, 3));
442 return Status::OK();
443}
444
445void TmpFileMgr::NewFile(
446 TmpFileGroup* file_group, DeviceId device_id, unique_ptr<TmpFile>* new_file) {

Callers

nothing calls this directly

Calls 7

CreateClass · 0.85
moveFunction · 0.85
OKFunction · 0.85
RegisterMetricMethod · 0.80
resetMethod · 0.65
getMethod · 0.65
AddThreadMethod · 0.45

Tested by

no test coverage detected