Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonYao287 committed Sep 1, 2024
1 parent 3e3fbfd commit fef6bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/replication/repl_dev/raft_repl_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ folly::SemiFuture< ReplServiceError > RaftReplDev::destroy_group() {

// here, we set the dsn to a new one , which is definitely unique in the follower, so that the new rreq will not
// have a conflict with the old rreq.
rreq->init(repl_key{.dsn = m_next_dsn.fetch_add(1)}, journal_type_t::HS_CTRL_DESTROY, true, sisl::blob{},
sisl::blob{}, 0);
rreq->init(repl_key{.server_id = server_id(), .term = raft_server()->get_term(), .dsn = m_next_dsn.fetch_add(1)},
journal_type_t::HS_CTRL_DESTROY, true, sisl::blob{}, sisl::blob{}, 0);

auto err = m_state_machine->propose_to_raft(std::move(rreq));
if (err != ReplServiceError::OK) {
Expand Down

0 comments on commit fef6bb0

Please sign in to comment.