| 513 | } |
| 514 | |
| 515 | void RemoteTabletNode::ComputeSplitKey(google::protobuf::RpcController* controller, |
| 516 | const SplitTabletRequest* request, |
| 517 | SplitTabletResponse* response, |
| 518 | google::protobuf::Closure* done) { |
| 519 | uint64_t id = request->sequence_id(); |
| 520 | LOG(INFO) << "accept RPC (ComputeSplitKey) id: " << id |
| 521 | << ", src: " << tera::utils::GetRemoteAddress(controller); |
| 522 | ThreadPool::Task callback = |
| 523 | std::bind(&RemoteTabletNode::DoComputeSplitKey, this, controller, request, response, done); |
| 524 | lightweight_ctrl_thread_pool_->AddTask(callback); |
| 525 | } |
| 526 | |
| 527 | void RemoteTabletNode::CompactTablet(google::protobuf::RpcController* controller, |
| 528 | const CompactTabletRequest* request, |
no test coverage detected