Skip to content

Commit adf3c33

Browse files
committed
Turn off sanity check for iterators in debug build
1 parent a9edf86 commit adf3c33

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

fc_btree.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ requires(Fanout >= 2 && FanoutLeaf >= 2) class BTreeBase {
346346
}
347347

348348
bool verify() noexcept {
349-
return !node_->parent_ || (index_ < node_->nkeys());
349+
// Uncomment this line for testing
350+
// assert(!node_->parent_ || (index_ < node_->nkeys()));
351+
return true;
350352
}
351353

352354
BTreeIterator &operator++() noexcept {
@@ -525,7 +527,7 @@ requires(Fanout >= 2 && FanoutLeaf >= 2) class BTreeBase {
525527

526528
[[nodiscard]] bool verify() const {
527529
// Uncomment these lines for testing
528-
530+
529531
// assert(begin_ == const_iterator_type(leftmost_leaf(root_.get()), 0));
530532
// assert(verify(root_.get()));
531533
return true;

0 commit comments

Comments
 (0)