Fixing a shortcut to detect alive children without iterating

[?]
Jan 4, 2021, 8:48 PM
CZX6TRWR53F2BRLKSUTBPEONKS65IYNBO2FYB4HSWF6OK7DOEJGAC

Dependencies

  • [2] GHO6DWPI Refactoring iterators
  • [3] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [*] 6YMDOZIB Refactoring apply
  • [*] CCLLB7OI Upgrading to Sanakirja 0.15 + version bump

Change contents

  • replacement in libpijul/src/apply.rs at line 739
    [2.66408][2.66408:66503]()
    if !e.flag.contains(EdgeFlags::PSEUDO) || is_alive(txn, channel, p).unwrap() {
    [2.66408]
    [2.66503]
    if e.flag.contains(EdgeFlags::BLOCK)
    || p.is_empty()
    || is_alive(txn, channel, p).unwrap()
    {
  • edit in libpijul/src/apply.rs at line 788
    [5.20720]
    [6.132150]
    debug_assert!(is_alive(txn, channel, c).unwrap());