tests/sstable_assertions: Fix monotonicity check for promoted indexes

Signed-off-by: Duarte Nunes <duarte@scylladb.com>
This commit is contained in:
Duarte Nunes
2017-11-20 14:05:21 +00:00
parent 24b867adda
commit ffaa3341c3

View File

@@ -52,7 +52,7 @@ public:
auto& prev = pi->entries[0];
for (size_t i = 1; i < pi->entries.size(); ++i) {
auto& cur = pi->entries[i];
if (!pos_cmp(prev.end, cur.start)) {
if (pos_cmp(cur.start, prev.end)) {
std::cout << "promoted index:\n";
for (auto& e : pi->entries) {
std::cout << " " << e.start << "-" << e.end << ": +" << e.offset << " len=" << e.width << std::endl;