Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup apply and validation flows #4471

Merged
merged 4 commits into from
Oct 16, 2024

Conversation

marta-lokhova
Copy link
Contributor

@marta-lokhova marta-lokhova commented Sep 18, 2024

Part of #4318 - main change is to stop passing around Application during validation and application flows, and use AppConnector instead, which is forced to either assert main thread or implement thread-safe methods

Resolves #3800 - note that READ_ONLY_WITHOUT_SQL_TXN LedgerTxn mode should go away completely once we switch to mandatory BucketListDB. It looks like we were using RO LedgerTxn during apply scenarios, which I think is not legal? Either way, all READ_ONLY_WITHOUT_SQL_TXN usages except for the legacy one in LedgerSnapshot have been removed now.

Note that the second commit has a huge diff but is a no-op, as it's basically a find and replace for Application -> AppConnector

src/main/AppConnector.h Show resolved Hide resolved
@marta-lokhova marta-lokhova added this pull request to the merge queue Oct 16, 2024
Merged via the queue into stellar:master with commit bcfbbe4 Oct 16, 2024
13 checks passed
@marta-lokhova marta-lokhova deleted the txFrameCleanup branch October 16, 2024 23:33
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.

LedgerTxn: audit shouldUpdateLastModified usage in read-only scenarios
2 participants