]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cache: clear extents_index when the booting is done 65198/head
authorXuehan Xu <xuxuehan@qianxin.com>
Sun, 24 Aug 2025 14:19:38 +0000 (14:19 +0000)
committerXuehan Xu <xuxuehan@qianxin.com>
Mon, 25 Aug 2025 07:13:58 +0000 (07:13 +0000)
Since all extents including RetiredExtentPlaceholder are linked to lba
leaf nodes, Cache::extents_index is only useful to link all lba/backref
nodes and logical extents together before SeaStore is fully booted.

So we should clear Cache::extents_index after SeaStore is booted.

Fixes: https://tracker.ceph.com/issues/72701
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/os/seastore/cache.h

index 0d6586c7e8110e1e201983f4206dfeecfdbc63a8..e292cc7b9722aebc0ffd90c5f6cdea0b8823a0f0 100644 (file)
@@ -1597,6 +1597,7 @@ public:
 
   void boot_done() {
     booting = false;
+    extents_index.clear();
   }
 private:
   void touch_extent_fully(