]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/onode-staged-tree: comment out excessive range checks 38578/head
authorYingxin Cheng <yingxin.cheng@intel.com>
Wed, 16 Dec 2020 08:09:42 +0000 (16:09 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 16 Dec 2020 14:59:22 +0000 (22:59 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/onode_manager/staged-fltree/tree_utils.h

index 5ea848e61306e03b637d68612460552465e170b5..e532d8fad6dcf0d5b164fc4bd2cb1b0acb291745 100644 (file)
@@ -133,13 +133,10 @@ class KVPool {
       : str_sizes{str_sizes}, onodes{onode_sizes} {
     ceph_assert(range2.first < range2.second);
     ceph_assert(range2.second - 1 <= (unsigned)std::numeric_limits<shard_t>::max());
-    ceph_assert(range2.second - 1 <= std::numeric_limits<pool_t>::max());
     ceph_assert(range2.second - 1 <= std::numeric_limits<crush_hash_t>::max());
     ceph_assert(range1.first < range1.second);
     ceph_assert(range1.second - 1 <= 9);
     ceph_assert(range0.first < range0.second);
-    ceph_assert(range0.second - 1 <= std::numeric_limits<snap_t>::max());
-    ceph_assert(range0.second - 1 <= std::numeric_limits<gen_t>::max());
     std::random_device rd;
     for (unsigned i = range2.first; i < range2.second; ++i) {
       for (unsigned j = range1.first; j < range1.second; ++j) {