Skip to content

Commit

Permalink
kv: fix iterator bug in prev
Browse files Browse the repository at this point in the history
Signed-off-by: Haodong Tang <haodong.tang@intel.com>
  • Loading branch information
haodong committed Aug 13, 2016
1 parent 9c9fdf4 commit 17cdc2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kv/MemDB.cc
Expand Up @@ -478,8 +478,8 @@ int MemDB::MDBWholeSpaceIteratorImpl:: prev()
return -1;
}
free_last();
m_iter--;
if (m_iter != m_btree_p->end()) {
if (m_iter != m_btree_p->begin()) {
m_iter--;
fill_current();
return 0;
} else {
Expand Down

0 comments on commit 17cdc2d

Please sign in to comment.