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

Replaces ReadAccountMapEntry in ancient append vecs #35238

Merged

Conversation

brooksprumo
Copy link
Contributor

@brooksprumo brooksprumo commented Feb 19, 2024

Problem

See #34786 for background.

We want to limit the use of ReadAccountMapEntry, from AccountsIndex, everywhere. Ultimately removing it once there are no more uses.

In ancient append vec tests, we manually incremental the ref count on accounts index entries. Currently the impl uses ReadAccountMapEntry via AccountsIndex::get_account_read_entry(), but it could get_and_then() instead.

Summary of Changes

Replace get_account_read_entry() in ancient append vecs

@brooksprumo brooksprumo added the work in progress This isn't quite right yet label Feb 19, 2024
@brooksprumo brooksprumo self-assigned this Feb 19, 2024
@brooksprumo brooksprumo force-pushed the self-ref/2/ancient-append-vecs branch from 98023c4 to 36fcc74 Compare February 19, 2024 15:23
@brooksprumo brooksprumo removed the work in progress This isn't quite right yet label Feb 19, 2024
@brooksprumo brooksprumo changed the title Replaces get_account_read_entry() in ancient append vecs Replaces ReadAccountMapEntry in ancient append vecs Feb 19, 2024
@brooksprumo brooksprumo marked this pull request as ready for review February 19, 2024 16:14
Copy link
Contributor

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

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

lgtm

@brooksprumo brooksprumo merged commit 0b5cc03 into solana-labs:master Feb 20, 2024
36 checks passed
@brooksprumo brooksprumo deleted the self-ref/2/ancient-append-vecs branch February 20, 2024 18:52
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