cowsql / raft

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

v1: Add `raft_transferee()` API and associated internal logic changes #134

Closed freeekanayaka closed 10 months ago

freeekanayaka commented 10 months ago

A leadership transfer can now be carried on by firing a RAFT_TRANSFER event, without using struct raft_transfer, which is now kept only in the legacy backward compatibility layer.

codecov[bot] commented 10 months ago

Codecov Report

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

Comparison is base (ef73ca6) 73.37% compared to head (3d1b72e) 73.35%.

Files Patch % Lines
src/legacy.c 70.00% 1 Missing and 8 partials :warning:
src/client.c 30.00% 4 Missing and 3 partials :warning:
src/membership.c 71.42% 0 Missing and 2 partials :warning:
src/replication.c 80.00% 1 Missing :warning:
src/state.c 0.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #134 +/- ## ========================================== - Coverage 73.37% 73.35% -0.02% ========================================== Files 52 52 Lines 9659 9683 +24 Branches 2355 2361 +6 ========================================== + Hits 7087 7103 +16 - Misses 1247 1250 +3 - Partials 1325 1330 +5 ```

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