modify
| 1441 | |
| 1442 | // modify <table_name> <start_key> <type> <end_key|dest_ts> |
| 1443 | CliStatus MetaModifyOp(Client* client, int32_t argc, std::string* argv, ErrorCode* err) { |
| 1444 | scoped_ptr<tera::sdk::ClusterFinder> finder(tera::sdk::NewClusterFinder()); |
| 1445 | const std::string meta_server = finder->RootTableAddr(); |
| 1446 | if (argc == 6) { |
| 1447 | common::ThreadPool thread_pool(1); |
| 1448 | const std::string& table_name = argv[2]; |
| 1449 | const std::string& start_key = argv[3]; |
| 1450 | const std::string type = argv[4]; |
| 1451 | const std::string value = argv[5]; |
| 1452 | return ModifyMetaValue(meta_server, &thread_pool, table_name, start_key, type, value); |
| 1453 | } else { |
| 1454 | PrintCmdHelpInfo(argv[1]); |
| 1455 | } |
| 1456 | return CliStatus::kOk; |
| 1457 | } |
| 1458 | |
| 1459 | // get [inmem] <table_name> <start_key> |
| 1460 | CliStatus MetaGetOp(Client* client, int32_t argc, std::string* argv, ErrorCode* err) { |
nothing calls this directly
no test coverage detected