Fixing a cache miss/unwrap in find_alive for vertices that have been split during insertion

pmeunier
Jan 27, 2022, 7:40 AM
JQR4Q2NKNPVEWUWDTV55HXSDVYVYFEO5V4OG3XNAXC4HD6OVOH7QC

Dependencies

  • [2] RSFUX6ML Correct find_alive cache system
  • [3] I24UEJQL Various post-fire fixes
  • [4] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).

Change contents

  • replacement in libpijul/src/find_alive.rs at line 29
    [2.3211][2.3211:3268]()
    return Ok(cache.get(&vertex0).unwrap());
    [2.3211]
    [2.3268]
    assert_eq!(vertex0.start_pos(), vertex.start_pos());
    return Ok(cache.get(&vertex).unwrap());
  • replacement in libpijul/src/find_alive.rs at line 124
    [2.5344][2.5344:5404]()
    return Ok(&cache.get(&vertex0).unwrap().0);
    [2.5344]
    [2.5404]
    assert_eq!(vertex.end_pos(), vertex0.end_pos());
    return Ok(&cache.get(&vertex).unwrap().0);