MCPcopy Create free account
hub / github.com/baidu/tera / Query

Method Query

src/tabletnode/remote_tabletnode.cc:493–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493void RemoteTabletNode::Query(google::protobuf::RpcController* controller,
494 const QueryRequest* request, QueryResponse* response,
495 google::protobuf::Closure* done) {
496 uint64_t id = request->sequence_id();
497 LOG(INFO) << "accept RPC (Query) id: " << id
498 << ", src: " << tera::utils::GetRemoteAddress(controller);
499 ThreadPool::Task callback =
500 std::bind(&RemoteTabletNode::DoQuery, this, controller, request, response, done);
501 lightweight_ctrl_thread_pool_->AddPriorityTask(callback);
502}
503
504void RemoteTabletNode::CmdCtrl(google::protobuf::RpcController* controller,
505 const TsCmdCtrlRequest* request, TsCmdCtrlResponse* response,

Callers 1

DoQueryMethod · 0.45

Calls 2

GetRemoteAddressFunction · 0.85
AddPriorityTaskMethod · 0.80

Tested by

no test coverage detected