Skip to content

Commit

Permalink
fix: prevent batch_index overflow in raw_curp
Browse files Browse the repository at this point in the history
Closes: xline-kv#368, xline-kv#800
Signed-off-by: Phoeniix Zhao <Phoenix500526@163.com>
  • Loading branch information
GFX9 authored and Phoenix500526 committed May 28, 2024
1 parent 548da36 commit f5ff5aa
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 144 deletions.
6 changes: 4 additions & 2 deletions crates/curp/src/server/curp_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ use utils::{
use super::{
cmd_board::{CmdBoardRef, CommandBoard},
cmd_worker::{conflict_checked_mpmc, start_cmd_workers},
conflict::spec_pool_new::{SpObject, SpeculativePool},
conflict::uncommitted_pool::{UcpObject, UncommittedPool},
conflict::{
spec_pool_new::{SpObject, SpeculativePool},
uncommitted_pool::{UcpObject, UncommittedPool},
},
gc::gc_cmd_board,
lease_manager::LeaseManager,
raw_curp::{AppendEntries, RawCurp, Vote},
Expand Down
6 changes: 4 additions & 2 deletions crates/curp/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ use utils::ClientTlsConfig;
use utils::{config::CurpConfig, task_manager::TaskManager, tracing::Extract};

use self::curp_node::CurpNode;
pub use self::raw_curp::RawCurp;
pub use self::{conflict::spec_pool_new::SpObject, conflict::uncommitted_pool::UcpObject};
pub use self::{
conflict::{spec_pool_new::SpObject, uncommitted_pool::UcpObject},
raw_curp::RawCurp,
};
use crate::{
cmd::{Command, CommandExecutor},
members::{ClusterInfo, ServerId},
Expand Down
Loading

0 comments on commit f5ff5aa

Please sign in to comment.