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

Function TableDiff

src/admincli.cc:1255–1268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1253}
1254
1255CliStatus 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
1270CliStatus TabletDiff(const std::string& prefix_path, const std::string& table_name,
1271 const std::string& tablet_name) {

Callers 1

MetaDiffOpFunction · 0.85

Calls 1

ScanAndDiffFunction · 0.85

Tested by

no test coverage detected