Skip to content

Cleanup of LM/CH loading and preparation#3316

Open
karussell wants to merge 5 commits intomasterfrom
prepare_separate
Open

Cleanup of LM/CH loading and preparation#3316
karussell wants to merge 5 commits intomasterfrom
prepare_separate

Conversation

@karussell
Copy link
Copy Markdown
Member

Avoids the removal and uses the initially created DataAccess instances.

Also tested manually that we can still add the CH/LM later or start without previously created ones.

karussell and others added 2 commits March 20, 2026 13:24
…ant DA creation

Previously, load() created a LandmarkStorage just to check if data existed, then
discarded it and removed the DataAccess entries from the directory. PrepareLandmarks
would then create a new LandmarkStorage, re-registering the same DAs. Now the
LandmarkStorage created during load() is passed through to PrepareLandmarks, avoiding
the ugly DA cleanup and the unnecessary double creation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… redundant DA creation

Same pattern as the LM fix: CHPreparationHandler.load() now passes back CHStorage
objects that failed to load, and prepare() reuses them instead of creating new ones.
This removes the ugly DA cleanup from the directory after failed loads.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant