]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/.../lba_btree_node_impl: fix at_min_capacity()
authorSamuel Just <sjust@redhat.com>
Fri, 30 Oct 2020 23:58:19 +0000 (16:58 -0700)
committerSamuel Just <sjust@redhat.com>
Tue, 8 Dec 2020 19:06:52 +0000 (19:06 +0000)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/lba_manager/btree/lba_btree_node_impl.h

index 5dd1ea5821d271727cffd5b323877ce382444a40..e84e5f23d941681d37043729598f457c8bc72a50 100644 (file)
@@ -246,7 +246,7 @@ struct LBAInternalNode
   }
 
   bool at_min_capacity() const {
-    return get_size() == get_capacity() / 2;
+    return get_size() == (get_capacity() / 2);
   }
 
   /// returns iterators containing [l, r)
@@ -516,7 +516,7 @@ struct LBALeafNode
   }
 
   bool at_min_capacity() const final {
-    return get_size() == get_capacity();
+    return get_size() == (get_capacity() / 2);
   }
 
   /// returns iterators <lb, ub> containing addresses [l, r)