| 3942 | } |
| 3943 | |
| 3944 | void HandleClientSendSnapshot(const std::vector<std::string> parts, |
| 3945 | ::fedb::client::TabletClient* client) { |
| 3946 | if (parts.size() < 4) { |
| 3947 | std::cout << "Bad SendSnapshot format" << std::endl; |
| 3948 | return; |
| 3949 | } |
| 3950 | try { |
| 3951 | bool ok = client->SendSnapshot(boost::lexical_cast<uint32_t>(parts[1]), |
| 3952 | boost::lexical_cast<uint32_t>(parts[1]), |
| 3953 | boost::lexical_cast<uint32_t>(parts[2]), |
| 3954 | parts[3]); |
| 3955 | if (ok) { |
| 3956 | std::cout << "SendSnapshot ok" << std::endl; |
| 3957 | } else { |
| 3958 | std::cout << "Fail to SendSnapshot" << std::endl; |
| 3959 | } |
| 3960 | } catch (boost::bad_lexical_cast& e) { |
| 3961 | std::cout << "Bad SendSnapshot format" << std::endl; |
| 3962 | } |
| 3963 | } |
| 3964 | |
| 3965 | void HandleClientLoadTable(const std::vector<std::string> parts, |
| 3966 | ::fedb::client::TabletClient* client) { |
no test coverage detected