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

Function CheckAndParseDebugString

src/admincli.cc:300–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300CliStatus CheckAndParseDebugString(const std::string& debug_str, std::string* raw_str) {
301 if (FLAGS_readable) {
302 raw_str->clear();
303 if (!ParseDebugString(debug_str, raw_str)) {
304 LOG(ERROR) << "invalid debug format: " << debug_str;
305 return CliStatus::kError;
306 }
307 } else {
308 *raw_str = debug_str;
309 }
310 return CliStatus::kOk;
311}
312
313static void PrintMetaInfo(const TabletMeta* meta) {
314 std::cout << "tablet: " << meta->table_name() << " [" << meta->key_range().key_start() << " ("

Callers

nothing calls this directly

Calls 2

ParseDebugStringFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected