sapling/eden/scm/lib/indexedlog
Jun Wu da6ca568b0 indexedlog: turn some panic into errors
Summary:
We have seen slicing panics on NFS, like:

  thread 'main' panicked at 'range end index 14079379 out of range for slice of length 0', eden/scm/lib/indexedlog/src/log/mod.rs:1678:14

Possibly when some files were stale or out of sync (ex. `log` got shorter than
expected somehow) due to NFS weirdness (bad locking?). Let's make them Rust
errors instead of panics for easier error reporting and investigation.

Reviewed By: DurhamG

Differential Revision: D30166177

fbshipit-source-id: 25cbd9c178b24580c176fe9469362fe0020ede95
2021-08-09 13:32:16 -07:00
..
benches indexedlog: fix a typo in benchmarks 2020-03-18 09:30:31 -07:00
src indexedlog: turn some panic into errors 2021-08-09 13:32:16 -07:00
tests Prepare for rustfmt 2.0 2020-09-07 20:47:59 -07:00
Cargo.toml eden/scm/lib: autogenerate all Cargo.toml files with autocargo 2021-03-05 04:29:49 -08:00