Skip to content
Snippets Groups Projects
Commit 575a9f29 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

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
1 merge request!1246cleanup a bunch of stuff related to compare and swap requests
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment