MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / HandleClientDelReplica

Function HandleClientDelReplica

src/cmd/fedb.cc:3588–3606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3586}
3587
3588void HandleClientDelReplica(const std::vector<std::string> parts,
3589 ::fedb::client::TabletClient* client) {
3590 if (parts.size() < 4) {
3591 std::cout << "Bad delreplica format" << std::endl;
3592 return;
3593 }
3594 try {
3595 bool ok = client->DelReplica(boost::lexical_cast<uint32_t>(parts[1]),
3596 boost::lexical_cast<uint32_t>(parts[2]),
3597 parts[3]);
3598 if (ok) {
3599 std::cout << "DelReplica ok" << std::endl;
3600 } else {
3601 std::cout << "Fail to Del Replica" << std::endl;
3602 }
3603 } catch (boost::bad_lexical_cast& e) {
3604 std::cout << "Bad delreplica format" << std::endl;
3605 }
3606}
3607
3608void HandleClientSetExpire(const std::vector<std::string> parts,
3609 ::fedb::client::TabletClient* client) {

Callers 1

StartClientFunction · 0.85

Calls 2

sizeMethod · 0.45
DelReplicaMethod · 0.45

Tested by

no test coverage detected