]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/omap: fix assert bug
authorXinyu Huang <xinyu.huang@intel.com>
Wed, 7 Sep 2022 00:01:33 +0000 (00:01 +0000)
committerXinyu Huang <xinyu.huang@intel.com>
Wed, 7 Sep 2022 00:01:33 +0000 (00:01 +0000)
Signed-off-by: Xinyu Huang <xinyu.huang@intel.com>
src/crimson/os/seastore/omap_manager/btree/omap_btree_node_impl.cc

index 11db3eb26bab8d8b1dd2723795075b2c9e6b0293..9711006d8569e546ae78b2eb42ff76efc3ac8e96 100644 (file)
@@ -248,7 +248,11 @@ OMapInnerNode::list(
                assert(child_result.begin()->first > result.rbegin()->first);
              }
              if (child_result.size() && start && first_entry) {
-               assert(child_result.begin()->first > *start);
+               if (config.inclusive) {
+                 assert(child_result.begin()->first >= *start);
+               } else {
+                 assert(child_result.begin()->first > *start);
+               }
              }
              result.merge(std::move(child_result));
              ++biter;