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

Function HandleClientRecoverSnapshot

src/cmd/fedb.cc:3924–3942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3922}
3923
3924void HandleClientRecoverSnapshot(const std::vector<std::string> parts,
3925 ::fedb::client::TabletClient* client) {
3926 if (parts.size() < 3) {
3927 std::cout << "Bad RecoverSnapshot format" << std::endl;
3928 return;
3929 }
3930 try {
3931 bool ok =
3932 client->RecoverSnapshot(boost::lexical_cast<uint32_t>(parts[1]),
3933 boost::lexical_cast<uint32_t>(parts[2]));
3934 if (ok) {
3935 std::cout << "RecoverSnapshot ok" << std::endl;
3936 } else {
3937 std::cout << "Fail to RecoverSnapshot" << std::endl;
3938 }
3939 } catch (boost::bad_lexical_cast& e) {
3940 std::cout << "Bad RecoverSnapshot format" << std::endl;
3941 }
3942}
3943
3944void HandleClientSendSnapshot(const std::vector<std::string> parts,
3945 ::fedb::client::TabletClient* client) {

Callers 1

StartClientFunction · 0.85

Calls 2

sizeMethod · 0.45
RecoverSnapshotMethod · 0.45

Tested by

no test coverage detected