]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/lba_manager/btree/btree_range_pin: remove obsolete assert
authorSamuel Just <sjust@redhat.com>
Sat, 21 Nov 2020 02:23:26 +0000 (02:23 +0000)
committerSamuel Just <sjust@redhat.com>
Fri, 11 Dec 2020 21:31:39 +0000 (13:31 -0800)
In the event that the only two children of the root are merged, they
as well as the old root will be retired meaning that check_parent
will find no parent.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/lba_manager/btree/btree_range_pin.cc

index 19d77ec088b0e2d1673a5c9ceddda19f1c771fde..a86c3cc57d8f696767d090114d57549787f43b5b 100644 (file)
@@ -147,8 +147,6 @@ void btree_pin_set_t::check_parent(btree_range_pin_t &pin)
   if (parent) {
     logger().debug("{}: releasing parent {}", __func__, *parent);
     release_if_no_children(*parent);
-  } else {
-    assert(pin.is_root());
   }
 }