tikv / raft-rs

Raft distributed consensus algorithm implemented in Rust.
Apache License 2.0
2.86k stars 391 forks source link

fix applied upper bound #543

Closed glorv closed 3 months ago

glorv commented 3 months ago

537 introduce the new config max_applied_unpersisted_log_limit that changes applied upper bound to min(committed, persisted + max_applied_unpersisted_log_limit), but since max_applied_unpersisted_log_limit can be changed dynamically, we can't directly use it as the upper bound of applied_to, so this PR loose the upper bound to committed.

glorv commented 3 months ago

@gengliqi @Connor1996 PTAL

Connor1996 commented 3 months ago

/merge