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

Function GetMeta

src/admincli.cc:382–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382CliStatus GetMeta(const std::string& meta_server, common::ThreadPool* thread_pool,
383 const std::string& table_name, const std::string& start_key) {
384 TabletMeta tablet_meta;
385 TableMeta table_meta;
386 if (GetMetaValue(meta_server, thread_pool, table_name, start_key, &table_meta, &tablet_meta) !=
387 CliStatus::kOk) {
388 std::cout << "wrong tablet input" << std::endl;
389 return CliStatus::kError;
390 }
391 PrintMetaInfo(&tablet_meta);
392 return CliStatus::kOk;
393}
394
395CliStatus DeleteMetaTablet(const std::string& meta_server, common::ThreadPool* thread_pool,
396 const std::string& table_name, const std::string& start_key) {

Callers 1

MetaGetOpFunction · 0.85

Calls 2

GetMetaValueFunction · 0.85
PrintMetaInfoFunction · 0.85

Tested by

no test coverage detected