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

Feature/multi-iterator-scanner-read-locks #28862

Merged

Conversation

apfitzge
Copy link
Contributor

@apfitzge apfitzge commented Nov 17, 2022

Problem

consume_scan_should_process_packet doesn't consider read-locks

Summary of Changes

Consider read-locks, also wrap in a struct so these checks are simpler

Fixes #28853

}

/// Check if a sanitized message's account locks are available.
fn check_sanitized_message_account_locks(&self, message: &SanitizedMessage) -> bool {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Considering a follow-up change here. We really only need to check the non-static (loaded from lookup) here.

@apfitzge apfitzge force-pushed the feature/multi-iterator-scanner-read-locks branch from 71ecfc6 to 84ae0f0 Compare November 18, 2022 16:35
@apfitzge apfitzge force-pushed the feature/multi-iterator-scanner-read-locks branch from 84ae0f0 to 31129bf Compare November 18, 2022 16:36
@apfitzge apfitzge added the work in progress This isn't quite right yet label Nov 18, 2022
@apfitzge apfitzge marked this pull request as ready for review November 18, 2022 22:51
@apfitzge apfitzge requested a review from tao-stones November 18, 2022 22:51
@apfitzge apfitzge removed the work in progress This isn't quite right yet label Nov 18, 2022
Copy link
Contributor

@tao-stones tao-stones left a comment

Choose a reason for hiding this comment

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

First round looks good to add read lock in processing decision making.

core/src/read_write_account_set.rs Show resolved Hide resolved
core/src/read_write_account_set.rs Show resolved Hide resolved
Copy link
Contributor

@tao-stones tao-stones left a comment

Choose a reason for hiding this comment

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

lgtm

@apfitzge apfitzge merged commit bdd1624 into solana-labs:master Nov 28, 2022
@apfitzge apfitzge deleted the feature/multi-iterator-scanner-read-locks branch November 28, 2022 17:23
gnapoli23 pushed a commit to gnapoli23/solana that referenced this pull request Dec 16, 2022
nickfrosty pushed a commit to nickfrosty/solana that referenced this pull request Jan 4, 2023
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.

MultiIteratorScanner - check read-locks
2 participants