Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd committed Jan 22, 2025
1 parent daa617d commit 6d1eede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handle_snapshot_sync.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,9 @@ bool raft_server::handle_snapshot_sync_req(snapshot_sync_req& req, std::unique_l

auto snap_conf = req.get_snapshot().get_last_config();
ptr<cluster_config> c_conf = get_config();
if (snap_conf->get_log_idx() > get_config()->get_log_idx()) {
if (snap_conf->get_log_idx() > c_conf->get_log_idx()) {
ctx_->state_mgr_->save_config(*snap_conf);
reconfigure(req.get_snapshot().get_last_config());
reconfigure(snap_conf);
c_conf = get_config();
}

Expand Down

0 comments on commit 6d1eede

Please sign in to comment.