Skip to content

Initialize Bucket directory after the database - #5325

Merged
marta-lokhova merged 1 commit into
stellar:masterfrom
marta-lokhova:newDBCleanup
Jun 13, 2026
Merged

marta-lokhova merged 1 commit into
stellar:masterfrom
marta-lokhova:newDBCleanup

Conversation

@marta-lokhova

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 12, 2026 00:21

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/main/ApplicationImpl.cpp Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 mDatabase before mBucketManager in ApplicationImpl::initialize.
  • Move BucketManager::maybeDropAndCreateNew() invocation into ApplicationImpl::newDB() (after mDatabase->initialize()).

@marta-lokhova
marta-lokhova added this pull request to the merge queue Jun 12, 2026
Merged via the queue into stellar:master with commit ff61f2e Jun 13, 2026
67 checks passed
@marta-lokhova
marta-lokhova deleted the newDBCleanup branch June 13, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants