From 8495d64e3339eb97c4c04b826fb3ad29aeabe41c Mon Sep 17 00:00:00 2001 From: Xuehan Xu Date: Sun, 24 Aug 2025 14:19:38 +0000 Subject: [PATCH] crimson/os/seastore/cache: clear extents_index when the booting is done 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 --- src/crimson/os/seastore/cache.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crimson/os/seastore/cache.h b/src/crimson/os/seastore/cache.h index 0d6586c7e8110..e292cc7b9722a 100644 --- a/src/crimson/os/seastore/cache.h +++ b/src/crimson/os/seastore/cache.h @@ -1597,6 +1597,7 @@ public: void boot_done() { booting = false; + extents_index.clear(); } private: void touch_extent_fully( -- 2.39.5