| 3586 | } |
| 3587 | |
| 3588 | void 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 | |
| 3608 | void HandleClientSetExpire(const std::vector<std::string> parts, |
| 3609 | ::fedb::client::TabletClient* client) { |
no test coverage detected