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

Make remove_entry async in IDatabaseTransaction trait #964

Merged
merged 2 commits into from
Nov 24, 2022

Conversation

m1sterc001guy
Copy link
Contributor

As a continuation of making the IDatabaseTransaction async, this PR makes remove_entry and rollback_to_savepoint async. This allows the executor to switch to a different thread in case some I/O is happening during remove_entry or rollback_to_savepoint.

I am only changing remove_entry and rollback_to_savepoint currently to keep the PR smaller and easier to review. The rest of the functions will be made async next.

@m1sterc001guy m1sterc001guy marked this pull request as draft November 22, 2022 20:56
@m1sterc001guy m1sterc001guy marked this pull request as ready for review November 22, 2022 21:14
@codecov-commenter
Copy link

Codecov Report

Base: 66.96% // Head: 66.89% // Decreases project coverage by -0.07% ⚠️

Coverage data is based on head (1279426) compared to base (0a11569).
Patch coverage: 70.12% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #964      +/-   ##
==========================================
- Coverage   66.96%   66.89%   -0.08%     
==========================================
  Files         113      113              
  Lines       16705    16713       +8     
==========================================
- Hits        11187    11180       -7     
- Misses       5518     5533      +15     
Impacted Files Coverage Δ
fedimint-api/src/module/mod.rs 94.73% <ø> (ø)
fedimint-testing/src/lib.rs 91.91% <0.00%> (-0.51%) ⬇️
client/client-lib/src/lib.rs 82.28% <28.57%> (-0.50%) ⬇️
modules/fedimint-ln/src/lib.rs 85.61% <42.85%> (-0.45%) ⬇️
fedimint-api/src/core/server.rs 90.35% <50.00%> (-0.47%) ⬇️
modules/fedimint-wallet/src/lib.rs 87.10% <60.00%> (-0.22%) ⬇️
client/client-lib/src/transaction.rs 84.28% <66.66%> (-1.03%) ⬇️
client/client-lib/src/mint/mod.rs 82.46% <69.23%> (-0.33%) ⬇️
fedimint-rocksdb/src/lib.rs 63.20% <71.42%> (-0.51%) ⬇️
fedimint-server/src/consensus/mod.rs 94.72% <77.77%> (-0.52%) ⬇️
... and 13 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@elsirion elsirion merged commit 59a294d into fedimint:master Nov 24, 2022
@m1sterc001guy m1sterc001guy deleted the remove_async branch January 4, 2023 15:35
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.

3 participants