| 3887 | } |
| 3888 | |
| 3889 | void HandleClientMakeSnapshot(const std::vector<std::string> parts, |
| 3890 | ::fedb::client::TabletClient* client) { |
| 3891 | if (parts.size() < 3) { |
| 3892 | std::cout << "Bad MakeSnapshot format" << std::endl; |
| 3893 | return; |
| 3894 | } |
| 3895 | bool ok = client->MakeSnapshot(boost::lexical_cast<uint32_t>(parts[1]), |
| 3896 | boost::lexical_cast<uint32_t>(parts[2]), 0); |
| 3897 | if (ok) { |
| 3898 | std::cout << "MakeSnapshot ok" << std::endl; |
| 3899 | } else { |
| 3900 | std::cout << "Fail to MakeSnapshot" << std::endl; |
| 3901 | } |
| 3902 | } |
| 3903 | |
| 3904 | void HandleClientPauseSnapshot(const std::vector<std::string> parts, |
| 3905 | ::fedb::client::TabletClient* client) { |
no test coverage detected