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

Take read-only transaction lock for keyring load #3406

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

pmatilai
Copy link
Member

One more refactor before getting to the real #3342 part...

Commit 364d284 moved a little too
much to the keystore side, revert the part that moved keyring
type detection back to the rpmts level.

No functional changes, needed for the next steps.
Take read-only transaction lock at the rpmts side, pass it down the
rpmKeystoreLoad() hatch.

Somehow this feels like an overkill but then our keystores haven't
been designed with concurrent access in mind *at all*, so play safe
and just take a read lock while loading they keystore. It also balances
the API: everything just takes a txn item now.

Related: rpm-software-management#3342
@pmatilai pmatilai requested a review from a team as a code owner October 28, 2024 08:59
@pmatilai pmatilai requested review from ffesti and removed request for a team October 28, 2024 08:59
@ffesti ffesti merged commit 79b26f1 into rpm-software-management:master Oct 28, 2024
1 check passed
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