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

recv: Update recvCb to use only raft_step() to process a message #60

Merged

Conversation

freeekanayaka
Copy link
Member

The LegacyForwardToRaftIo() function will now forward to raft_step() all messages received by the struct raft_io interface.

Pass the sender ID and address explicitly, instead of relying on the equivalent
struct raft_message fields, which will be dropped later on.

Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
The `LegacyForwardToRaftIo()` function will now forward to `raft_step()` all
messages received by the `struct raft_io` interface.

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

codecov bot commented Sep 21, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.03% 🎉

Comparison is base (df51361) 74.77% compared to head (f46b449) 74.80%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #60      +/-   ##
==========================================
+ Coverage   74.77%   74.80%   +0.03%     
==========================================
  Files          53       53              
  Lines        9152     9152              
  Branches     2289     2287       -2     
==========================================
+ Hits         6843     6846       +3     
+ Misses       1015     1014       -1     
+ Partials     1294     1292       -2     
Files Changed Coverage Δ
src/raft.c 78.85% <100.00%> (+0.62%) ⬆️
src/recv.c 73.63% <100.00%> (+1.46%) ⬆️

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

@freeekanayaka freeekanayaka merged commit 8d1ae81 into cowsql:main Sep 21, 2023
@freeekanayaka freeekanayaka deleted the use-raft-step-for-processing-messages branch September 21, 2023 21:34
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