]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os/seastore/lba_manager: end iterator should be pointing to the leaf-node...
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 30 Aug 2021 07:44:41 +0000 (15:44 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Mon, 30 Aug 2021 08:06:25 +0000 (16:06 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/lba_manager/btree/lba_btree.cc

index e9ef706d5c986c3bce45f3c8bca7166d3c176412..6adb0fbbd5224c6c3e389892e7c68660bfa318d2 100644 (file)
@@ -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(