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

Method DisableTable

src/master/remote_master.cc:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void RemoteMaster::DisableTable(google::protobuf::RpcController* controller,
47 const DisableTableRequest* request, DisableTableResponse* response,
48 google::protobuf::Closure* done) {
49 LOG(INFO) << "accept RPC (DisableTable): " << tera::utils::GetRemoteAddress(controller);
50 ThreadPool::Task callback =
51 std::bind(&RemoteMaster::DoDisableTable, this, controller, request, response, done);
52 thread_pool_->AddTask(callback);
53}
54
55void RemoteMaster::EnableTable(google::protobuf::RpcController* controller,
56 const EnableTableRequest* request, EnableTableResponse* response,

Callers 1

DoDisableTableMethod · 0.45

Calls 2

GetRemoteAddressFunction · 0.85
AddTaskMethod · 0.80

Tested by

no test coverage detected