Repository navigation
Initialize Bucket directory after the database - #5325
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6cc76fc50b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
This PR changes the startup/initialization sequence in ApplicationImpl so the SQL Database is constructed before BucketManager, and the “new DB” bucket-directory reset happens inside newDB() rather than during early initialization. This aligns bucket-directory initialization/reset with the database’s new-db initialization flow.
Changes:
- Construct
mDatabasebeforemBucketManagerinApplicationImpl::initialize. - Move
BucketManager::maybeDropAndCreateNew()invocation intoApplicationImpl::newDB()(aftermDatabase->initialize()).
No description provided.