| 298 | } |
| 299 | |
| 300 | CliStatus 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 | |
| 313 | static void PrintMetaInfo(const TabletMeta* meta) { |
| 314 | std::cout << "tablet: " << meta->table_name() << " [" << meta->key_range().key_start() << " (" |
nothing calls this directly
no test coverage detected