fix: unify which term is used for cas predicates
CAS predicates should always contain the current raft term, because this is what's explicitly checked in proc_cas. Note that this will sometimes result in a EntryTermMismatch error because the latest applied entry may have a different term in case the election has started but not finished yet. We could add this check to all the client cas precondition checks, but it's not a big deal, because we handle the situation correctly anyways.
parent
15327a9f
No related branches found
No related tags found
Showing
- src/cas.rs 32 additions, 2 deletionssrc/cas.rs
- src/luamod.rs 1 addition, 8 deletionssrc/luamod.rs
- src/plugin/mod.rs 2 additions, 14 deletionssrc/plugin/mod.rs
- src/rpc/join.rs 2 additions, 10 deletionssrc/rpc/join.rs
- src/rpc/update_instance.rs 2 additions, 10 deletionssrc/rpc/update_instance.rs
- src/schema.rs 8 additions, 12 deletionssrc/schema.rs
- src/sql.rs 2 additions, 14 deletionssrc/sql.rs
Loading