Skip to content

Commit 8495d64

Browse files
committed
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 <[email protected]>
1 parent eae8872 commit 8495d64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/crimson/os/seastore/cache.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,6 +1597,7 @@ class Cache : public ExtentTransViewRetriever,
15971597

15981598
void boot_done() {
15991599
booting = false;
1600+
extents_index.clear();
16001601
}
16011602
private:
16021603
void touch_extent_fully(

0 commit comments

Comments
 (0)