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

Method UnRegisterCompletedRPCs

be/src/service/client-request-state.cc:2516–2529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2514}
2515
2516void ClientRequestState::UnRegisterCompletedRPCs() {
2517 lock_guard<mutex> l(lock_);
2518 for (auto iter = pending_rpcs_.begin(); iter != pending_rpcs_.end();) {
2519 RpcEventHandler::InvocationContext* rpc_context = *iter;
2520 uint64_t read_ns = 0, write_ns = 0;
2521 if (rpc_context->UnRegisterCompleted(read_ns, write_ns)) {
2522 rpc_read_timer_->Add(read_ns);
2523 rpc_write_timer_->Add(write_ns);
2524 iter = pending_rpcs_.erase(iter);
2525 } else {
2526 ++iter;
2527 }
2528 }
2529}
2530
2531void ClientRequestState::UnRegisterRemainingRPCs() {
2532 lock_guard<mutex> l(lock_);

Callers 2

GetActiveQueryHandleMethod · 0.80

Calls 5

UnRegisterCompletedMethod · 0.80
eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected