MCPcopy Create free account
hub / github.com/baidu/tera / MetaModifyOp

Function MetaModifyOp

src/admincli.cc:1443–1457  ·  view source on GitHub ↗

modify

Source from the content-addressed store, hash-verified

1441
1442// modify <table_name> <start_key> <type> <end_key|dest_ts>
1443CliStatus 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>
1460CliStatus MetaGetOp(Client* client, int32_t argc, std::string* argv, ErrorCode* err) {

Callers

nothing calls this directly

Calls 4

NewClusterFinderFunction · 0.85
ModifyMetaValueFunction · 0.85
RootTableAddrMethod · 0.80
PrintCmdHelpInfoFunction · 0.70

Tested by

no test coverage detected