Skip to content

Commit

Permalink
fix IBSTree iterators.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmellorcrummey committed Nov 27, 2017
1 parent cd8ca5c commit 03e1a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/h/IBSTree.h
Expand Up @@ -260,14 +260,14 @@ class IBSTree {
const_iterator begin() const {
pfq_rwlock_read_lock(rwlock);
iterator b = root;
while(b->left) b = root->left;
while(b->left) b = b->left;
pfq_rwlock_read_unlock(rwlock);
return b;
}
const_iterator end() const {
pfq_rwlock_read_lock(rwlock);
iterator e = root;
while(e->right) e = root->right;
while(e->right) e = e->right;
pfq_rwlock_read_unlock(rwlock);
return e;
}
Expand Down

0 comments on commit 03e1a82

Please sign in to comment.