| 3902 | } |
| 3903 | |
| 3904 | void HandleClientPauseSnapshot(const std::vector<std::string> parts, |
| 3905 | ::fedb::client::TabletClient* client) { |
| 3906 | if (parts.size() < 3) { |
| 3907 | std::cout << "Bad PauseSnapshot format" << std::endl; |
| 3908 | return; |
| 3909 | } |
| 3910 | try { |
| 3911 | bool ok = |
| 3912 | client->PauseSnapshot(boost::lexical_cast<uint32_t>(parts[1]), |
| 3913 | boost::lexical_cast<uint32_t>(parts[2])); |
| 3914 | if (ok) { |
| 3915 | std::cout << "PauseSnapshot ok" << std::endl; |
| 3916 | } else { |
| 3917 | std::cout << "Fail to PauseSnapshot" << std::endl; |
| 3918 | } |
| 3919 | } catch (boost::bad_lexical_cast& e) { |
| 3920 | std::cout << "Bad PauseSnapshot format" << std::endl; |
| 3921 | } |
| 3922 | } |
| 3923 | |
| 3924 | void HandleClientRecoverSnapshot(const std::vector<std::string> parts, |
| 3925 | ::fedb::client::TabletClient* client) { |
no test coverage detected