sapling/eden/scm/lib/dag
Jun Wu ea61594e04 dag: add some validations about segment parents
Summary:
We saw the `unwrap()` panic at `iddag.rs:453`:

  let (new_idx, low, high, parent_count, has_root) = candidate.unwrap();

Reading the code, it seems it can only happen if one of `parents` is `high` in a segment.
Parents in a segment should all be < low.  Add some validations for that.

Reviewed By: sfilipco

Differential Revision: D27021394

fbshipit-source-id: 2c51713dfb8f07f2921229d8866f7e8a0bd9490f
2021-03-12 13:02:50 -08:00
..
benches dag: move algorithms from IdDag<Store> to Store 2021-02-10 12:28:31 -08:00
bindag eden/scm/lib: autogenerate all Cargo.toml files with autocargo 2021-03-05 04:29:49 -08:00
dag-types eden/scm/lib: autogenerate all Cargo.toml files with autocargo 2021-03-05 04:29:49 -08:00
fuzz dag: use non-master group in fuzz test 2020-08-26 15:32:24 -07:00
gitdag eden/scm/lib: autogenerate all Cargo.toml files with autocargo 2021-03-05 04:29:49 -08:00
src dag: add some validations about segment parents 2021-03-12 13:02:50 -08:00
Cargo.toml third-party/rust: update tokio & tokio-stream 2021-03-10 11:01:28 -08:00