fs::follow_oldest_path: remove infinite loop

pmeunier
Dec 7, 2021, 7:29 PM
Z2OLQ4HQ76S4QMI6KSRCZ2EAXU3FRVPMELS6VPPFCV2W2AYMVW2QC

Dependencies

  • [2] D3XN3HHJ Avoid the root in fs::follow_oldest_path
  • [3] 3AMEP2Y5 More convenient interface for channels
  • [4] VYHHOEYH Versions and formatting
  • [5] GHO6DWPI Refactoring iterators
  • [6] I52XSRUH Massive cleanup, and simplification
  • [7] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [8] CCLLB7OI Upgrading to Sanakirja 0.15 + version bump
  • [9] KNB3RZMS Fixing path crashes related to the new non-null roots

Change contents

  • replacement in libpijul/src/fs.rs at line 851
    [3.759576][3.759576:759605](),[3.759605][2.0:117]()
    let mut next = None;
    let mut has_descendants = true;
    'outer: while has_descendants {
    has_descendants = false;
    [3.759576]
    [2.117]
    'outer: loop {
    let mut next = None;
  • edit in libpijul/src/fs.rs at line 861
    [3.430][2.180:220]()
    has_descendants = true;