]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/onode-staged-tree: add the missing retired validation
authorYingxin Cheng <yingxin.cheng@intel.com>
Tue, 8 Jun 2021 06:03:07 +0000 (14:03 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Fri, 11 Jun 2021 14:59:18 +0000 (22:59 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_accessor.h

index afa695fa128bcbbd6ef0e138c9634796ef7056f9..991b6004fba368c2a5ea7d763bcc316d7d663839 100644 (file)
@@ -339,8 +339,7 @@ class NodeExtentAccessorT {
 
   bool is_retired() const {
     if (extent) {
-      // XXX SeaStore extent cannot distinguish between invalid and retired.
-      // assert(extent->is_valid());
+      assert(!extent->is_retired());
       return false;
     } else {
       return true;