cowsql / raft

Asynchronous C implementation of the Raft consensus protocol
https://raft.readthedocs.io
Other
45 stars 6 forks source link

replication: Fix the value of the last log index in AppendEntries results #148

Closed freeekanayaka closed 7 months ago

freeekanayaka commented 7 months ago

There were a few cases were this value was set incorrectly. See individual commits for details.

codecov[bot] commented 7 months ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (a994cb1) 73.81% compared to head (66ed6af) 73.93%.

Files Patch % Lines
src/progress.c 85.71% 1 Missing :warning:
src/recv_append_entries.c 90.00% 0 Missing and 1 partial :warning:
src/replication.c 50.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #148 +/- ## ========================================== + Coverage 73.81% 73.93% +0.11% ========================================== Files 52 52 Lines 10002 10020 +18 Branches 2436 2442 +6 ========================================== + Hits 7383 7408 +25 + Misses 1272 1260 -12 - Partials 1347 1352 +5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.