forked from lei.chen/myxce
on_get_entry_term → persist_entry_term (recorded term, 0=absent, legacy-0→1; caveat documented per 1.3 review). on_truncate_from → persist_truncate_wal_above(p, index-1) (delete LSN>=index), returns rc for library/leader retry; non-promotable fence intact; replaces the committed-boundary heuristic on the library-driven path. New truncate_term_index_locked keeps the in-memory per-LSN term index consistent on both truncate paths (under lock, cutoff-aligned) → no stale-term read after truncation. 3 tests, reviewer APPROVED, per-group 0 failures. |
||
|---|---|---|
| .. | ||
| settings | ||
| specs | ||
| steering | ||