| 25 | } |
| 26 | |
| 27 | bool IsSchemaLgDiff(const TableSchema& a, const TableSchema& b) { |
| 28 | std::stringstream s0; |
| 29 | std::stringstream s1; |
| 30 | for (int i = 0; i < a.locality_groups_size(); ++i) { |
| 31 | s0 << a.locality_groups(i).ShortDebugString(); |
| 32 | } |
| 33 | LOG(INFO) << "[utils] " << s0.str(); |
| 34 | for (int i = 0; i < b.locality_groups_size(); ++i) { |
| 35 | s1 << b.locality_groups(i).ShortDebugString(); |
| 36 | } |
| 37 | LOG(INFO) << "[utils] " << s1.str(); |
| 38 | return (s0.str().compare(s1.str()) != 0); |
| 39 | } |
| 40 | |
| 41 | } // namespace tera |
no test coverage detected