Skip to content

Commit

Permalink
fix: EntryConfChangeV2 persist snapshot (#89)
Browse files Browse the repository at this point in the history
* fix: EntryConfChangeV2 persist snapshot

* update dep

---------

Co-authored-by: Jayanring <956165026@qq.com>
  • Loading branch information
Jayanring and Jayanring authored Aug 29, 2023
1 parent 99e5f69 commit a5ddc88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tokio = { version = "1.29", features = ["fs", "io-util", "rt", "macros"] }
serde = "1.0"
bytes = "1.4"
tower = "0.4"
flume = "0.10"
flume = "0.11"

cloud-util = { package = "cloud-util", git = "https://github.com/cita-cloud/cloud-common-rs.git" }
cita_cloud_proto = { package = "cita_cloud_proto", git = "https://github.com/cita-cloud/cloud-common-rs.git" }
Expand Down
1 change: 1 addition & 0 deletions src/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ impl Peer {
self.core.mut_store().update_conf_state(cs);
self.pending_conf_change_proposed = false;
self.core.mut_store().advance_applied_index(entry.index);
self.core.mut_store().persist_snapshot().await;
}
}
}
Expand Down

0 comments on commit a5ddc88

Please sign in to comment.