sapling/eden/scm/lib/revlogindex
Jun Wu 4868f5bf5b revlog: avoid racy reads on 00changelog.i
Summary:
D21626209 (38d6c6a819) changed revlogindex to read `00changelog.i` by its own instead of
taking the data from Python. That turns out to be racy. The `00changelog.i`
might be changed between the Rust and Python reads and that caused issues.

This diff makes Python re-use the indexdata read by Rust so they are guaranteed
the same.

Reviewed By: DurhamG

Differential Revision: D22303305

fbshipit-source-id: 823bf3aefc970a4a6ce8ab58bccf972a78f6de70
2020-06-30 10:19:03 -07:00
..
src revlog: avoid racy reads on 00changelog.i 2020-06-30 10:19:03 -07:00
Cargo.toml revlogindex: update outdated nodemap more aggressively 2020-06-23 22:53:36 -07:00