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

use callback for account and account_default_if_zero_lamport #819

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

jeffwashington
Copy link

Problem

moving to not mmapping append vec files. Soon, lifetimes of borrowed account data will be limited to a callback.

Summary of Changes

Rework StorableAccounts. account() and account_default_if_zero_lamport) to use a callback.
The next change will push the callback up to getting the data from the storage. This change was done to simplify the diff and take one step at a time.

Fixes #

@jeffwashington jeffwashington force-pushed the 4a70_callback branch 2 times, most recently from bb32f81 to 8d274c7 Compare April 15, 2024 19:28
@jeffwashington jeffwashington marked this pull request as ready for review April 15, 2024 20:48
Copy link

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

:shipit:

@jeffwashington jeffwashington merged commit ee5fb51 into anza-xyz:master Apr 16, 2024
38 checks passed
michaelschem pushed a commit to michaelschem/agave that referenced this pull request Apr 20, 2024
…z#819)

use callback for `account` and `account_default_if_zero_lamport`
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.

2 participants