From ffaa3341c3f2d331d9c8dfcefdb41d231d11581f Mon Sep 17 00:00:00 2001 From: Duarte Nunes Date: Mon, 20 Nov 2017 14:05:21 +0000 Subject: [PATCH] tests/sstable_assertions: Fix monotonicity check for promoted indexes Signed-off-by: Duarte Nunes --- tests/sstable_assertions.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sstable_assertions.hh b/tests/sstable_assertions.hh index 4379f2cad1..f514bba1c7 100644 --- a/tests/sstable_assertions.hh +++ b/tests/sstable_assertions.hh @@ -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;