| 1253 | } |
| 1254 | |
| 1255 | CliStatus TableDiff(const std::string& prefix_path, const std::string& table_name) { |
| 1256 | int ret = ScanAndDiff(table_name, prefix_path); |
| 1257 | if (ret != 0) { |
| 1258 | return CliStatus::kError; |
| 1259 | } |
| 1260 | |
| 1261 | if (g_diff_count == 0) { |
| 1262 | std::cout << "table:" << table_name << " no diff:" << std::endl; |
| 1263 | } else { |
| 1264 | std::cout << "table:" << table_name << "diff num:" << g_diff_count |
| 1265 | << ", check the details in ./meta.diff" << std::endl; |
| 1266 | } |
| 1267 | return CliStatus::kOk; |
| 1268 | } |
| 1269 | |
| 1270 | CliStatus TabletDiff(const std::string& prefix_path, const std::string& table_name, |
| 1271 | const std::string& tablet_name) { |
no test coverage detected