| 1728 | } |
| 1729 | |
| 1730 | void TabletManager::LoadTableMeta(const std::string& key, const std::string& value) { |
| 1731 | TableMeta meta; |
| 1732 | ParseMetaTableKeyValue(key, value, &meta); |
| 1733 | TablePtr table = CreateTable(meta); |
| 1734 | StatusCode ret_status = kTabletNodeOk; |
| 1735 | if (meta.table_name() == FLAGS_tera_master_meta_table_name) { |
| 1736 | LOG(INFO) << "ignore meta table record in meta table"; |
| 1737 | } else if (!AddTable(table, &ret_status)) { |
| 1738 | LOG(ERROR) << "duplicate table in meta table: table=" << meta.table_name(); |
| 1739 | // TODO: try correct invalid record |
| 1740 | } else { |
| 1741 | VLOG(5) << "load table record: " << table; |
| 1742 | } |
| 1743 | } |
| 1744 | |
| 1745 | void TabletManager::LoadTabletMeta(const std::string& key, const std::string& value) { |
| 1746 | TabletMeta meta; |
no test coverage detected