Skip to content
Snippets Groups Projects
Commit 8c84e9e2 authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov
Browse files

fix: stricter term checks in CaS

Consider the case when a client requests `index: X, term: T`, but
`term(X) != T`. Picodata used to check all entries in the range `[X+1,
last]`, but it didn't check the index `X` itself.

This patch provides this one extra check. Thereby it makes sure that
all entries in the range `[X, last]` belong to the same term `T ==
current_term`.
parent 35cc5245
No related branches found
No related tags found
1 merge request!512test: python API for CaS and log compaction
Pipeline #17460 passed
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