Skip to content

Commit

Permalink
proto: introduce joint-consensus from etcd/raft (#310)
Browse files Browse the repository at this point in the history
Signed-off-by: qupeng <[email protected]>
  • Loading branch information
hicqu authored Nov 5, 2019
1 parent faa4384 commit d34f693
Show file tree
Hide file tree
Showing 14 changed files with 113 additions and 2,439 deletions.
4 changes: 1 addition & 3 deletions examples/five_mem_node/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,9 @@ fn on_ready(
ConfChangeType::AddNode => raft_group.raft.add_node(node_id).unwrap(),
ConfChangeType::RemoveNode => raft_group.raft.remove_node(node_id).unwrap(),
ConfChangeType::AddLearnerNode => raft_group.raft.add_learner(node_id).unwrap(),
ConfChangeType::BeginMembershipChange
| ConfChangeType::FinalizeMembershipChange => unimplemented!(),
}
let cs = raft_group.raft.prs().configuration().to_conf_state();
store.wl().set_conf_state(cs, None);
store.wl().set_conf_state(cs);
} else {
// For normal proposals, extract the key-value pair and then
// insert them into the kv engine.
Expand Down
1 change: 0 additions & 1 deletion harness/tests/integration_cases/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

mod test_membership_changes;
mod test_raft;
mod test_raft_flow_control;
mod test_raft_paper;
Expand Down
Loading

0 comments on commit d34f693

Please sign in to comment.