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

v1: Use TaskPersistSnapshot() instead of raft_io->snapshot_put() #67

Merged
merged 5 commits into from
Sep 22, 2023

Conversation

freeekanayaka
Copy link
Member

Update the code to enqueue a RAFT_PERSIST_SNAPSHOT task instead of calling out the legacy raft_io->snapshot_put() interface.

This structure will eventually replace struct raft_snapshot, since actual
snapshot data will be completely managed by consumer code.

Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
This structure holds parameters for RAFT_PERSIST_SNAPSHOT tasks.

Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
It enqueues new RAFT_PERSIST_SNAPSHOT tasks.

Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
Use raft_io->snapshot_put() to handle RAFT_PERSIST_SNAPSHOT tasks.

Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
Update the code to enqueue a RAFT_PERSIST_SNAPSHOT task instead of calling out
the legacy raft_io->snapshot_put() interface.

Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
@codecov
Copy link

codecov bot commented Sep 22, 2023

Codecov Report

Patch coverage: 69.13% and project coverage change: +0.01% 🎉

Comparison is base (37b9eea) 74.92% compared to head (2b50b54) 74.93%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #67      +/-   ##
==========================================
+ Coverage   74.92%   74.93%   +0.01%     
==========================================
  Files          53       53              
  Lines        9215     9265      +50     
  Branches     2285     2291       +6     
==========================================
+ Hits         6904     6943      +39     
- Misses       1009     1015       +6     
- Partials     1302     1307       +5     
Files Changed Coverage Δ
src/snapshot.c 88.67% <ø> (-0.21%) ⬇️
src/start.c 62.37% <0.00%> (-0.63%) ⬇️
src/task.c 65.97% <66.66%> (+0.15%) ⬆️
src/replication.c 69.68% <68.00%> (+0.61%) ⬆️
src/legacy.c 62.76% <68.75%> (+1.22%) ⬆️
src/raft.c 82.03% <100.00%> (+0.44%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@freeekanayaka freeekanayaka merged commit 07ab3b9 into cowsql:main Sep 22, 2023
4 of 5 checks passed
@freeekanayaka freeekanayaka deleted the task-persist-snapshot branch September 22, 2023 12:14
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.

1 participant