Skip to content

Commit

Permalink
crimson/os/seastore/lba_manager: end iterator should be pointing to t…
Browse files Browse the repository at this point in the history
…he leaf-node size already

Signed-off-by: Yingxin Cheng <[email protected]>
  • Loading branch information
cyx1231st committed Aug 30, 2021
1 parent aea5038 commit 390d44e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/crimson/os/seastore/lba_manager/btree/lba_btree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ LBABtree::iterator_fut LBABtree::iterator::prev(op_context_t c) const

auto ret = *this;

if (is_end()) {
ret.leaf.pos = ret.leaf.node->get_size();
}

if (ret.leaf.pos > 0) {
ret.leaf.pos--;
return iterator_fut(
Expand Down

0 comments on commit 390d44e

Please sign in to comment.