From a3700a6d0a24c9314bc4ea7a55d80bf766b564b2 Mon Sep 17 00:00:00 2001 From: Alejo Sanchez Date: Thu, 6 May 2021 16:56:06 -0400 Subject: [PATCH] raft: replication test: move up set_config Move set_config above raft_cluster for a subsequent commit. Signed-off-by: Alejo Sanchez --- test/raft/replication_test.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/raft/replication_test.cc b/test/raft/replication_test.cc index 69b7356266..3223768203 100644 --- a/test/raft/replication_test.cc +++ b/test/raft/replication_test.cc @@ -396,6 +396,16 @@ public: std::unordered_map rpc::net; +struct set_config_entry { + size_t node_idx; + bool can_vote; + + set_config_entry(size_t idx, bool can_vote = true) + : node_idx(idx), can_vote(can_vote) + {} +}; +using set_config = std::vector; + struct test_server { std::unique_ptr server; state_machine* sm; @@ -559,16 +569,6 @@ struct leader { }; using partition = std::vector>; -struct set_config_entry { - size_t node_idx; - bool can_vote; - - set_config_entry(size_t idx, bool can_vote = true) - : node_idx(idx), can_vote(can_vote) - {} -}; -using set_config = std::vector; - struct tick { uint64_t ticks; };